mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-28 13:45:32 +01:00
Support new line character in stage messages, fixes #661
This commit is contained in:
parent
8b0a23255c
commit
c02eebafb1
@ -1358,10 +1358,10 @@ public class QuestFactory implements ConversationAbandonedListener {
|
|||||||
if (delay != null) {
|
if (delay != null) {
|
||||||
stage.set("delay", delay.intValue() / 1000);
|
stage.set("delay", delay.intValue() / 1000);
|
||||||
}
|
}
|
||||||
stage.set("delay-message", delayMessage);
|
stage.set("delay-message", delayMessage.replace("\\n", "\n"));
|
||||||
stage.set("objective-override", overrideDisplay);
|
stage.set("objective-override", overrideDisplay.replace("\\n", "\n"));
|
||||||
stage.set("start-message", startMessage);
|
stage.set("start-message", startMessage.replace("\\n", "\n"));
|
||||||
stage.set("complete-message", completeMessage);
|
stage.set("complete-message", completeMessage.replace("\\n", "\n"));
|
||||||
}
|
}
|
||||||
if (moneyRew != null || questPointsRew != null || itemRews != null && itemRews.isEmpty() == false || permRews != null && permRews.isEmpty() == false || expRew != null || commandRews != null && commandRews.isEmpty() == false || mcMMOSkillRews != null || RPGItemRews != null || heroesClassRews != null && heroesClassRews.isEmpty() == false || phatLootRews != null && phatLootRews.isEmpty() == false || customRews != null && customRews.isEmpty() == false) {
|
if (moneyRew != null || questPointsRew != null || itemRews != null && itemRews.isEmpty() == false || permRews != null && permRews.isEmpty() == false || expRew != null || commandRews != null && commandRews.isEmpty() == false || mcMMOSkillRews != null || RPGItemRews != null || heroesClassRews != null && heroesClassRews.isEmpty() == false || phatLootRews != null && phatLootRews.isEmpty() == false || customRews != null && customRews.isEmpty() == false) {
|
||||||
ConfigurationSection rews = cs.createSection("rewards");
|
ConfigurationSection rews = cs.createSection("rewards");
|
||||||
|
Loading…
Reference in New Issue
Block a user