Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1.  
  2. if (playerCommand.equalsIgnoreCase("players")) {
  3.  
  4. c.startAnimation(4945);
  5. c.gfx0(816);
  6. c.forcedChat("There is currently "+PlayerHandler.getPlayerCount()+ " players
  7.  
  8. online on Creative-X");
  9. c.getPA().sendFrame126("Creative-X - Players Online", 8144);
  10. c.getPA().sendFrame126("@dbl@Online players(" + PlayerHandler.getPlayerCount()+
  11.  
  12. "):", 8145);
  13. int line = 8147;
  14. for (int i = 1; i < Config.MAX_PLAYERS; i++) {
  15. Client p = c.getClient(i);
  16. if (!c.validClient(i))
  17. continue;
  18. if (p.playerName != null) {
  19. String title = "";
  20. if (p.playerRights == 1) {
  21. title = " Mod) ";
  22. } else if (p.playerRights == 2) {
  23. title = "Admin) ";
  24. }
  25. else if (p.playerRights == 3) {
  26. title = " > Epic Owner <) ";
  27. }
  28. else if (p.playerRights == 4) {
  29. title = "Donator) ";
  30. }
  31. title += "Cb: " + p.combatLevel;
  32. String extra = "";
  33. if (c.playerRights > 0) {
  34. extra = "(" + p.playerId + ") ";
  35. }
  36.  
  37. if (System.currentTimeMillis() - c.lastyell > 20000) {
  38. c.lastyell = System.currentTimeMillis();
  39. for (int j = 0; j < Server.playerHandler.players.length; j++) {
  40. if (Server.playerHandler.players[j] != null) {
  41. Client c2 = (Client)Server.playerHandler.players[j];
  42. c2.sendMessage("[Player] " + c.playerName + ": " +
  43.  
  44. Misc.optimizeText(playerCommand.substring(5)));
  45. }//hm, here is where i copied it
  46. }
  47. } else {
  48. c.sendMessage("Do not spam this command.");
  49. }
  50. }
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement