From 130953b216852fa22928a1bef72810f62d780862 Mon Sep 17 00:00:00 2001 From: Mykyta Komarnytskyy Date: Tue, 10 Nov 2020 10:31:37 -0800 Subject: [PATCH] Fix #62 Don't count sleepingIgnored() as an exclusion because this causes conflicts with other plugins. Oftentimes it's difficult to track down which plugin is causing sleeping to be ignored, so it's easier to just remove the check. --- src/main/java/xyz/nkomarn/harbor/task/Checker.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/xyz/nkomarn/harbor/task/Checker.java b/src/main/java/xyz/nkomarn/harbor/task/Checker.java index 9efc038..d24b79b 100644 --- a/src/main/java/xyz/nkomarn/harbor/task/Checker.java +++ b/src/main/java/xyz/nkomarn/harbor/task/Checker.java @@ -217,8 +217,7 @@ public class Checker extends BukkitRunnable { || excludedBySpectator || excludedByPermission || excludedByVanish - || harbor.getPlayerManager().isAfk(player) - || player.isSleepingIgnored(); + || harbor.getPlayerManager().isAfk(player); } /**