Fire fail Action during Condition fail, fixes #1777

This commit is contained in:
PikaMug 2022-07-27 06:14:09 -04:00
parent b38ee19dab
commit 72ab32c71a

View File

@ -4974,6 +4974,9 @@ public class Quester implements IQuester {
getPlayer().sendMessage(ChatColor.RED + Lang.get(getPlayer(), "conditionFailQuit")
.replace("<quest>", quest.getName()));
}
if (stage.getFailAction() != null) {
getCurrentStage(quest).getFailAction().fire(this, quest);
}
hardQuit(quest);
} else if (giveReason) {
if (System.currentTimeMillis() - lastNotifiedCondition > (plugin.getSettings().getConditionInterval()