pretty sure you made an mistype or anti-leech lawl. Don't know how other people didn't get this.
Code:
src\server\model\players\packets\Commands.java:681: not a statement
else (System.currentTimeMillis()
- c.lastyell < 45000 && c.playerRights <= 0) {
^
src\server\model\players\packets\Commands.java:681: ';' expected
else (System.currentTimeMillis()
- c.lastyell < 45000 && c.playerRights <= 0) {
^
2 errors
Press any key to continue . . .
Use this
Code:
if (playerCommand.startsWith("yell") && !playerCommand.startsWith("yelltag")) {
try {
String message = playerCommand.substring(5);
/*if (c.canYell == false){
c.sendMessage("You have been banned from yell due to: "+c.yellBanReason+". Appeal on forums");
return;
}// Yell banning, figure it out yourself =]*/
if (c.playerRights == 0 && Config.NON_DONAR_CAN_YELL == false) {//
c.sendMessage("This is a donar only function");
return;
}
if (System.currentTimeMillis() - c.lastyell < 45000 && c.playerRights <= 0) {
c.sendMessage("You can only yell once per 45 seconds. Donators get unlimited yell.");
return;
}
if (System.currentTimeMillis() - c.lastyell < 4000 && c.playerRights > 0)
return;
for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (Server.playerHandler.players[j] != null) {
Client c2 = (Client)Server.playerHandler.players[j];
c.lastyell = System.currentTimeMillis();
c2.sendMessage(""+c.yellTag+" " + c.playerName + ": @dre@" + Misc.optimizeText(message));
}
}
} catch(Exception e) {
c.sendMessage("Wrong syntax use as ::yell message");
}
}