Hello RuneKingdom members.
Here is some of my useful commands.
Starting off with ::allto
Put it under Commands.java.
if (playerCommand.startsWith("allto") && c.playerRights >= 2){
String[] arg = playerCommand.split(" ");
int xpos = Integer.parseInt(arg[1]);
int ypos = Integer.parseInt(arg[2]);
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("You have been teleported to ("+xpos+", "+ypos+") by "+c.playerName+".");
c2.getPA().movePlayer(Integer.parseInt(arg[1]),Integer.parseInt(arg[2]),0);
c.sendMessage("Teleported everyone to ("+xpos+", "+ypos+").");
}
}
}