diff --git a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_adminmode.java b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_adminmode.java index f0e57be..37eee7e 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Commands/Command_adminmode.java +++ b/src/me/StevenLawson/TotalFreedomMod/Commands/Command_adminmode.java @@ -30,7 +30,7 @@ public class Command_adminmode extends TFM_Command TFM_Util.bcastMsg("Server is now closed to non-superadmins.", ChatColor.RED); for (Player p : server.getOnlinePlayers()) { - if (TFM_Util.isUserSuperadmin(p)) + if (!TFM_Util.isUserSuperadmin(p)) { p.kickPlayer("Server is now closed to non-superadmins."); } diff --git a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java index a2a29f6..a1809fa 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java +++ b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java @@ -670,7 +670,7 @@ public class TFM_PlayerListener implements Listener if (TotalFreedomMod.adminOnlyMode) { - event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "Server is currently closed to non-superadmins."); + event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "Server is temporarily open to admins only."); return; }