mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-08-06 16:59:29 +00:00
Fixes bug where the whitelist wasn't working
This commit is contained in:
@@ -179,7 +179,7 @@ public class LoginProcess extends FreedomService
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Whitelist
|
// Whitelist
|
||||||
if (server.isWhitelistEnforced() && !player.isWhitelisted())
|
if (server.hasWhitelist() && !player.isWhitelisted())
|
||||||
{
|
{
|
||||||
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "You are not whitelisted on this server.");
|
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "You are not whitelisted on this server.");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user