This is my yell command.
can you do it i got one error from it lolz
Code:
} else if (playerCommand.startsWith("yell") && c.playerRights <= 0) {
if (System.currentTimeMillis() - c.lastyell > 10000) {
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("[@mag@Player@bla@] " + c.playerName + ": @dre@" + Misc.optimizeText(playerCommand.substring(5)));
}//hm, here is where i copied it
}
} else {
c.sendMessage("Regular players can only yell once per 10 seconds.");
}
}