This would go in requests.
|
This would go in requests.
Code:if (cmd.equals("staffonline")) { List<String> staff = new LinkedList<String>(); for (Player p : PlayerHandler.players) { if (p != null && p.playerRights > 1) { staff.add(p.playername); } } c.sendMessage("Current staff online are:"); for (String s : staff) { c.sendMessage(s); } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |