From 72f115dd97d8ceff6745e4a3924bde91c2232ced Mon Sep 17 00:00:00 2001 From: Zino Date: Fri, 9 Aug 2013 21:41:32 +0200 Subject: [PATCH] * Fix quest description displaying multiple times * Somehow removed a check in requirements prompt, placed it back in. --- src/main/java/me/blackvein/quests/Quests.java | 2 -- .../java/me/blackvein/quests/prompts/RequirementsPrompt.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index 743f0fe56..475f0a831 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -787,8 +787,6 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener, + "\n" + RESET + getQuest(quester.questToTake).description + "\n"; - cs.sendMessage(s); - for (String msg : s.split("
")) { cs.sendMessage(msg); } diff --git a/src/main/java/me/blackvein/quests/prompts/RequirementsPrompt.java b/src/main/java/me/blackvein/quests/prompts/RequirementsPrompt.java index 0de759e73..c1de3f1f8 100644 --- a/src/main/java/me/blackvein/quests/prompts/RequirementsPrompt.java +++ b/src/main/java/me/blackvein/quests/prompts/RequirementsPrompt.java @@ -97,7 +97,7 @@ public class RequirementsPrompt extends FixedSetPrompt implements ColorUtil{ } } - if(context.getSessionData(CK.REQ_MONEY) == null && context.getSessionData(CK.REQ_QUEST_BLOCK) == null && context.getSessionData(CK.REQ_ITEMS) == null && context.getSessionData(CK.REQ_PERMISSION) == null && context.getSessionData(CK.REQ_QUEST) == null && context.getSessionData(CK.REQ_QUEST_BLOCK) == null){ + if(context.getSessionData(CK.REQ_MONEY) == null && context.getSessionData(CK.REQ_QUEST_POINTS) == null && context.getSessionData(CK.REQ_QUEST_BLOCK) == null && context.getSessionData(CK.REQ_ITEMS) == null && context.getSessionData(CK.REQ_PERMISSION) == null && context.getSessionData(CK.REQ_QUEST) == null && context.getSessionData(CK.REQ_QUEST_BLOCK) == null){ text += GRAY + "" + BOLD + "7 - " + RESET + GRAY + "Set fail requirements message (No requirements set)\n"; }else if(context.getSessionData(CK.Q_FAIL_MESSAGE) == null){ text += RED + "" + BOLD + "7 - " + RESET + RED + "Set fail requirements message (Required)\n";