Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (playerCommand.equalsIgnoreCase("players")) {
- c.startAnimation(4945);
- c.gfx0(816);
- c.forcedChat("There is currently "+PlayerHandler.getPlayerCount()+ " players
- online on Creative-X");
- c.getPA().sendFrame126("Creative-X - Players Online", 8144);
- c.getPA().sendFrame126("@dbl@Online players(" + PlayerHandler.getPlayerCount()+
- "):", 8145);
- int line = 8147;
- for (int i = 1; i < Config.MAX_PLAYERS; i++) {
- Client p = c.getClient(i);
- if (!c.validClient(i))
- continue;
- if (p.playerName != null) {
- String title = "";
- if (p.playerRights == 1) {
- title = " Mod) ";
- } else if (p.playerRights == 2) {
- title = "Admin) ";
- }
- else if (p.playerRights == 3) {
- title = " > Epic Owner <) ";
- }
- else if (p.playerRights == 4) {
- title = "Donator) ";
- }
- title += "Cb: " + p.combatLevel;
- String extra = "";
- if (c.playerRights > 0) {
- extra = "(" + p.playerId + ") ";
- }
- if (System.currentTimeMillis() - c.lastyell > 20000) {
- c.lastyell = System.currentTimeMillis();
- for (int j = 0; j < Server.playerHandler.players.length; j++) {
- if (Server.playerHandler.players[j] != null) {
- Client c2 = (Client)Server.playerHandler.players[j];
- c2.sendMessage("[Player] " + c.playerName + ": " +
- Misc.optimizeText(playerCommand.substring(5)));
- }//hm, here is where i copied it
- }
- } else {
- c.sendMessage("Do not spam this command.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement