From 942ef32940f71222b1e6acbd0c17513d8be064bd Mon Sep 17 00:00:00 2001 From: BuildTools Date: Mon, 11 Feb 2019 18:54:42 -0500 Subject: [PATCH] Complete password objectives synchronously, fixes #694 --- src/main/java/me/blackvein/quests/Quester.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/blackvein/quests/Quester.java b/src/main/java/me/blackvein/quests/Quester.java index c821cf6ee..edb679327 100644 --- a/src/main/java/me/blackvein/quests/Quester.java +++ b/src/main/java/me/blackvein/quests/Quester.java @@ -1458,7 +1458,13 @@ public class Quester { String display = getCurrentStage(quest).passwordDisplays.get(getCurrentStage(quest).passwordPhrases.indexOf(passes)); getQuestData(quest).passwordsSaid.put(display, true); done = true; - finishObjective(quest, "password", null, null, null, null, null, null, null, null, display, null); + plugin.getServer().getScheduler().runTask(plugin, new Runnable() { + + @Override + public void run() { + finishObjective(quest, "password", null, null, null, null, null, null, null, null, display, null); + } + }); break; } }