mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 00:58:55 +01:00
* Fix quest description displaying multiple times
* Somehow removed a check in requirements prompt, placed it back in.
This commit is contained in:
parent
148ae5ea99
commit
72f115dd97
@ -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);
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user