Typhome

Untitled

Aug 2nd, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. System.out.println("[Interface 8134] " + getUsername() + " -> ::players command (start)");
  2. actionSender.sendString("Players Online List", 8144);
  3. actionSender.sendString("There are " + World.playerAmount() + " players online.", 8145);
  4. int i = 0;
  5. for(Player player : World.getPlayers()) {
  6. if(player == null) {
  7. continue;
  8. }
  9. if(Constants.QUEST_FRAMES[i] == 8145) {
  10. continue;
  11. }
  12. /*if(i > Constants.QUEST_FRAMES.length)
  13. continue;*/
  14. actionSender.sendString(player.getUsername(), Constants.QUEST_FRAMES[i]);
  15. System.out.println("[Interface 8134] " + player.getUsername() + "; " + Constants.QUEST_FRAMES[i]);
  16. i++;
  17. }
  18. //actionSender.sendString(getUsername(), 8147);
  19. actionSender.sendInterface(8134);
  20. actionSender.sendMessage("There are currently " + World.playerAmount() + " players online.");
  21. System.out.println("[Interface 8134] " + getUsername() + " -> ::players command (end)");
Advertisement
Add Comment
Please, Sign In to add comment