Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. import org.bukkit.command.Command;
  2. import org.bukkit.command.CommandExecutor;
  3. import org.bukkit.command.CommandSender;
  4. import org.bukkit.entity.Player;
  5.  
  6. import tk.framegames.maxmurks.KnockOut.KnockOut;
  7.  
  8. public class TopCMD implements CommandExecutor{
  9.  
  10. @Override
  11. public boolean onCommand(CommandSender cs, Command command, String label, String[] args) {
  12. if(cs instanceof Player) {
  13. Player p=(Player)cs;
  14. p.sendMessage(KnockOut.getInstance().getPrefix()+"§bTop 10");
  15. int nr=0;
  16. for(String uuids:KnockOut.getInstance().getMySQL().getTopTen()) {
  17. p.sendMessage(KnockOut.getInstance().getPrefix()+"§a"+nr+", §7"+KnockOut.getInstance().getMySQL().getName(uuids)+" §7-§a"+KnockOut.getInstance().getMySQL().getPoints(uuids)+" §7Punkte");
  18. }
  19. }
  20. return true;
  21. }
  22.  
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement