diff --git a/2006Redone Server/src/redone/net/packets/impl/Commands.java b/2006Redone Server/src/redone/net/packets/impl/Commands.java index 5680e154..49be97f3 100644 --- a/2006Redone Server/src/redone/net/packets/impl/Commands.java +++ b/2006Redone Server/src/redone/net/packets/impl/Commands.java @@ -15,6 +15,7 @@ import java.util.Arrays; import static redone.game.content.combat.magic.MagicTeleports.LUMBRIDGE_X; import static redone.game.content.combat.magic.MagicTeleports.LUMBRIDGE_Y; +import static redone.util.GameLogger.writeLog; public class Commands implements PacketType { @@ -24,7 +25,7 @@ public class Commands implements PacketType { String playerCommand = messageArr[0]; String[] commandArguments = Arrays.copyOfRange(messageArr, 1, messageArr.length); if ((playerCommand.startsWith("ban") || playerCommand.startsWith("ip") || playerCommand.startsWith("mute") || playerCommand.startsWith("un")) && player.playerRights > 0 && player.playerRights < 4) { - GameLogger.writeLog(player.playerName, "commands", player.playerName + " used command: " + playerCommand); + writeLog(player.playerName, "commands", player.playerName + " used command: " + playerCommand); } if (player.playerRights >= 0) { playerCommands(player, playerCommand, commandArguments); @@ -311,6 +312,19 @@ public class Commands implements PacketType { player.getActionSender().sendMessage("Player Must Be Offline."); } break; + case "update": + try { + if (arguments.length == 0) { + player.getActionSender().sendMessage("You must specify the amount of time in seconds: ::update 300"); + return; + } + int seconds = Integer.parseInt(arguments[0]); + PlayerHandler.updateSeconds = seconds; + PlayerHandler.updateAnnounced = false; + PlayerHandler.updateRunning = true; + PlayerHandler.updateStartTime = System.currentTimeMillis(); + } catch (Exception e) {} + break; } } @@ -704,19 +718,6 @@ public class Commands implements PacketType { case "sidebars": player.getPlayerAssistant().sendSidebars(); break; - case "update": - try { - if (arguments.length == 0) { - player.getActionSender().sendMessage("You must specify the amount of time in seconds: ::update 300"); - return; - } - int seconds = Integer.parseInt(arguments[0]); - PlayerHandler.updateSeconds = seconds; - PlayerHandler.updateAnnounced = false; - PlayerHandler.updateRunning = true; - PlayerHandler.updateStartTime = System.currentTimeMillis(); - } catch (Exception e) {} - break; } } diff --git a/CompiledServer/production/2006rebotted/redone/net/packets/impl/Commands$1.class b/CompiledServer/production/2006rebotted/redone/net/packets/impl/Commands$1.class index 3949d210..32aa5c08 100644 Binary files a/CompiledServer/production/2006rebotted/redone/net/packets/impl/Commands$1.class and b/CompiledServer/production/2006rebotted/redone/net/packets/impl/Commands$1.class differ diff --git a/CompiledServer/production/2006rebotted/redone/net/packets/impl/Commands.class b/CompiledServer/production/2006rebotted/redone/net/packets/impl/Commands.class index 0cd68629..5ea89ff2 100644 Binary files a/CompiledServer/production/2006rebotted/redone/net/packets/impl/Commands.class and b/CompiledServer/production/2006rebotted/redone/net/packets/impl/Commands.class differ