From 1dfda4862a2f2b9e11bb86c33f9b864f565f9ba9 Mon Sep 17 00:00:00 2001 From: PikaMug Date: Wed, 14 Aug 2019 14:33:10 -0400 Subject: [PATCH] Relist expired quests with ignore-locked-quests enabled, fixes #905 --- main/src/main/java/me/blackvein/quests/Quests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/src/main/java/me/blackvein/quests/Quests.java b/main/src/main/java/me/blackvein/quests/Quests.java index 1059aa9d1..63fa785a9 100644 --- a/main/src/main/java/me/blackvein/quests/Quests.java +++ b/main/src/main/java/me/blackvein/quests/Quests.java @@ -1281,6 +1281,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener if (q.testRequirements(player)) { available.add(q); } + } else if (q.getPlanner().hasCooldown() && quester.getCooldownDifference(q) < 0) { + if (q.testRequirements(player)) { + available.add(q); + } } } if ((available.size() + rows) <= ((page * rows)) || available.size() == 0) {