mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Oops
This commit is contained in:
parent
0f1fa3612a
commit
0af25d921f
@ -30,7 +30,7 @@ public class Command_adminmode extends TFM_Command
|
|||||||
TFM_Util.bcastMsg("Server is now closed to non-superadmins.", ChatColor.RED);
|
TFM_Util.bcastMsg("Server is now closed to non-superadmins.", ChatColor.RED);
|
||||||
for (Player p : server.getOnlinePlayers())
|
for (Player p : server.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
if (TFM_Util.isUserSuperadmin(p))
|
if (!TFM_Util.isUserSuperadmin(p))
|
||||||
{
|
{
|
||||||
p.kickPlayer("Server is now closed to non-superadmins.");
|
p.kickPlayer("Server is now closed to non-superadmins.");
|
||||||
}
|
}
|
||||||
|
@ -670,7 +670,7 @@ public class TFM_PlayerListener implements Listener
|
|||||||
|
|
||||||
if (TotalFreedomMod.adminOnlyMode)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user