Fixes bug where the whitelist wasn't working

This commit is contained in:
Video 2022-09-11 22:10:57 -06:00
parent 42458084d7
commit 1eaaf5fcdb

View File

@ -179,7 +179,7 @@ public class LoginProcess extends FreedomService
}
// Whitelist
if (server.isWhitelistEnforced() && !player.isWhitelisted())
if (server.hasWhitelist() && !player.isWhitelisted())
{
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "You are not whitelisted on this server.");
}