This commit is contained in:
Rsl1122 2018-08-30 17:22:33 +03:00
parent 446aec2a0a
commit 0bb2922329

View File

@ -41,7 +41,10 @@ public class AFKListener implements Listener {
UUID uuid = player.getUniqueId();
long time = System.currentTimeMillis();
boolean ignored = ignorePermissionInfo.getOrDefault(uuid, player.hasPermission(Permissions.IGNORE_AFK.getPermission()));
Boolean ignored = ignorePermissionInfo.get(uuid);
if (ignored == null) {
ignored = player.hasPermission(Permissions.IGNORE_AFK.getPermission());
}
if (ignored) {
AFK_TRACKER.hasIgnorePermission(uuid);
ignorePermissionInfo.put(uuid, true);