mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-01 04:26:42 +00:00
Added /lockdown
This commit is contained in:
@ -253,6 +253,12 @@ public class TFM_ServerInterface
|
||||
return;
|
||||
}
|
||||
|
||||
if (TotalFreedomMod.lockdownEnabled)
|
||||
{
|
||||
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "Server is currently in lockdown mode.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (player_list.hasWhitelist)
|
||||
{
|
||||
if (!player_list.getWhitelisted().contains(player_name.toLowerCase()))
|
||||
@ -295,6 +301,11 @@ public class TFM_ServerInterface
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (TotalFreedomMod.lockdownEnabled)
|
||||
{
|
||||
TFM_Util.playerMsg(p, "Warning: Server is currenty in lockdown-mode, new players will not be able to join!", ChatColor.RED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user