1
Snippets / Re: [PI] Enhanced mining.
« on: March 19, 2011, 11:23:47 pm »If you don't like the documentation, then what ever. Its how I code.
Without documentation coding is too hard for you, right?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
If you don't like the documentation, then what ever. Its how I code.
This is prolly the best 317 that loaded 614 cache ever tho O_o
Hello Rune-Server members,
Today I ...
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+").");
}
}
}























