diff --git a/src/main/java/me/blackvein/quests/PlayerListener.java b/src/main/java/me/blackvein/quests/PlayerListener.java index cb90ed274..da7d8a2c0 100644 --- a/src/main/java/me/blackvein/quests/PlayerListener.java +++ b/src/main/java/me/blackvein/quests/PlayerListener.java @@ -701,8 +701,10 @@ public class PlayerListener implements Listener { } for (Integer timerId : quester.timers.keySet()) { plugin.getServer().getScheduler().cancelTask(timerId); - quester.timers.get(timerId).failQuest(quester); - quester.timers.remove(timerId); + if (quester.timers.containsKey(timerId)) { + quester.timers.get(timerId).failQuest(quester); + quester.timers.remove(timerId); + } } if (quester.hasData()) {