Removes dependency on NMS

This commit is contained in:
Video
2022-03-25 14:45:32 -06:00
parent 2551d184ca
commit adcccb10e5
11 changed files with 42 additions and 440 deletions

View File

@ -175,9 +175,9 @@ public class LoginProcess extends FreedomService
}
// Whitelist
if (plugin.si.isWhitelisted())
if (server.isWhitelistEnforced())
{
if (!plugin.si.getWhitelisted().contains(username.toLowerCase()))
if (!player.isWhitelisted())
{
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "You are not whitelisted on this server.");
}