* Fix quest description displaying multiple times

* Somehow removed a check in requirements prompt, placed it back in.
This commit is contained in:
Zino 2013-08-09 21:41:32 +02:00
parent 148ae5ea99
commit 72f115dd97
2 changed files with 1 additions and 3 deletions

View File

@ -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("<br>")) {
cs.sendMessage(msg);
}

View File

@ -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";