From 331b20ed4777190a998e898ac70fa84e23f555e5 Mon Sep 17 00:00:00 2001 From: Spencer Date: Sat, 25 Nov 2017 15:53:44 -0500 Subject: [PATCH] B R A C E S --- .../game/arcade/command/ToggleAfkKickCommand.java | 13 +++++++++---- .../nautilus/game/arcade/managers/IdleManager.java | 3 ++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/command/ToggleAfkKickCommand.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/command/ToggleAfkKickCommand.java index 836cba08c..16347d3ab 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/command/ToggleAfkKickCommand.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/command/ToggleAfkKickCommand.java @@ -15,21 +15,26 @@ public class ToggleAfkKickCommand extends CommandBase super(plugin, IdleManager.Perm.TOGGLE_AFK_KICK_COMMAND, "toggleafkkick", "afkkick"); } - public void toggleAfkKick() { + public void toggleAfkKick() + { GameServerConfig config = Plugin.GetServerConfig(); config.PlayerKickIdle = !config.PlayerKickIdle; } @Override - public void Execute(Player caller, String[] args) { + public void Execute(Player caller, String[] args) + { toggleAfkKick(); String message = C.cGray + "AFK kick is now "; - if (Plugin.IsPlayerKickIdle()) { + if (Plugin.IsPlayerKickIdle()) + { message += C.cGreen + "enabled"; - } else { + } + else + { message += C.cRed + "disabled"; } diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/IdleManager.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/IdleManager.java index c302c2b8b..cc0c1eaba 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/IdleManager.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/IdleManager.java @@ -62,7 +62,8 @@ public class IdleManager implements Listener PermissionGroup.ADMIN.setPermission(Perm.TOGGLE_AFK_KICK_COMMAND, true, true); - if (UtilServer.isTestServer()) { + if (UtilServer.isTestServer()) + { PermissionGroup.QA.setPermission(Perm.TOGGLE_AFK_KICK_COMMAND, true, true); } }