Typhome

Untitled

Aug 2nd, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 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.  
  5. List<Integer> if8134_taken = new ArrayList<Integer>();
  6.  
  7. for (Player player : World.getPlayers()) {
  8. if(player == null) {
  9. continue;
  10. }
  11. System.out.println("[Interface 8134] " + player.getUsername());
  12. if8134_loop: {
  13. for (int i = 0; i < Constants.QUEST_FRAMES.length; i++) {
  14. if(Constants.QUEST_FRAMES[i] != 8145 && !if8134_taken.contains(Constants.QUEST_FRAMES[i]))
  15. {
  16. actionSender.sendString(player.getUsername(), Constants.QUEST_FRAMES[i]);
  17. System.out.println("[Interface 8134] " + player.getUsername() + "; " + Constants.QUEST_FRAMES[i]);
  18. if8134_taken.add(Constants.QUEST_FRAMES[i]);
  19. break if8134_loop;
  20. }
  21. }
  22. }
  23. }
  24. actionSender.sendInterface(8134);
  25. actionSender.sendMessage("There are currently " + World.playerAmount() + " players online.");
  26. System.out.println("[Interface 8134] " + getUsername() + " -> ::players command (end)");
Advertisement
Add Comment
Please, Sign In to add comment