B R A C E S
This commit is contained in:
parent
19f637ba30
commit
331b20ed47
@ -15,21 +15,26 @@ public class ToggleAfkKickCommand extends CommandBase<ArcadeManager>
|
||||
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";
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user