Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandExecutor;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import tk.framegames.maxmurks.KnockOut.KnockOut;
- public class TopCMD implements CommandExecutor{
- @Override
- public boolean onCommand(CommandSender cs, Command command, String label, String[] args) {
- if(cs instanceof Player) {
- Player p=(Player)cs;
- p.sendMessage(KnockOut.getInstance().getPrefix()+"§bTop 10");
- int nr=0;
- for(String uuids:KnockOut.getInstance().getMySQL().getTopTen()) {
- p.sendMessage(KnockOut.getInstance().getPrefix()+"§a"+nr+", §7"+KnockOut.getInstance().getMySQL().getName(uuids)+" §7-§a"+KnockOut.getInstance().getMySQL().getPoints(uuids)+" §7Punkte");
- }
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement