mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 07:54:58 +00:00
Oops
This commit is contained in:
parent
0f1fa3612a
commit
0af25d921f
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue