Fix afk list NPE (#4294)

This commit is contained in:
Josh Roy 2021-07-01 11:15:24 -04:00 committed by GitHub
parent 0861427bf3
commit 55db6c2476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -633,7 +633,7 @@ public class Settings implements net.ess3.api.ISettings {
getFreezeAfkPlayers = _getFreezeAfkPlayers();
sleepIgnoresAfkPlayers = _sleepIgnoresAfkPlayers();
afkListName = _getAfkListName();
isAfkListName = !afkListName.equalsIgnoreCase("none");
isAfkListName = afkListName != null && !afkListName.equalsIgnoreCase("none");
broadcastAfkMessage = _broadcastAfkMessage();
itemSpawnBl = _getItemSpawnBlacklist();
loginAttackDelay = _getLoginAttackDelay();