From 0af25d921f29dc77ef493f51545b790c5679f988 Mon Sep 17 00:00:00 2001 From: Steven Lawson Date: Sat, 15 Sep 2012 17:06:50 -0400 Subject: [PATCH] Oops --- .../TotalFreedomMod/Commands/Command_adminmode.java | 2 +- .../TotalFreedomMod/Listener/TFM_PlayerListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }