Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Errors:
- src\server\model\players\packets\Commands.java:802: error: not a statement
- else (System.currentTimeMillis()
- - c.lastyell < 45000 && c.playerRights <= 0) {
- ^
- src\server\model\players\packets\Commands.java:802: error: ';' expected
- else (System.currentTimeMillis()
- - c.lastyell < 45000 && c.playerRights <= 0) {
- ^
- 2 errors
- Press any key to continue . . .
- Command:
- 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;
- }
- else (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");
- }
- }
Add Comment
Please, Sign In to add comment