This commit is contained in:
Steven Lawson 2012-09-15 17:06:50 -04:00
parent 0f1fa3612a
commit 0af25d921f
2 changed files with 2 additions and 2 deletions

View File

@ -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.");
}

View File

@ -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;
}