mirror of https://github.com/PikaMug/Quests.git
Consolidate custom data string formatting
This commit is contained in:
parent
565bfe02e0
commit
f12a592f06
|
@ -1761,7 +1761,7 @@ public class RequirementsPrompt extends QuestsEditorNumericPrompt {
|
|||
text += ChatColor.GOLD + descriptions.get(temp) + "\n";
|
||||
}
|
||||
String lang = Lang.get("stageEditorCustomDataPrompt");
|
||||
lang = lang.replace("<data>", temp);
|
||||
lang = lang.replace("<data>", ChatColor.GOLD + temp + ChatColor.YELLOW);
|
||||
text += ChatColor.YELLOW + lang;
|
||||
}
|
||||
return text;
|
||||
|
|
|
@ -1994,7 +1994,7 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
|
|||
text += ChatColor.GOLD + descriptions.get(temp) + "\n";
|
||||
}
|
||||
String lang = Lang.get("stageEditorCustomDataPrompt");
|
||||
lang = lang.replace("<data>", temp);
|
||||
lang = lang.replace("<data>", ChatColor.GOLD + temp + ChatColor.YELLOW);
|
||||
text += ChatColor.YELLOW + lang;
|
||||
}
|
||||
return text;
|
||||
|
|
|
@ -2802,7 +2802,7 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
|
|||
text += ChatColor.GOLD + descriptions.get(temp) + "\n";
|
||||
}
|
||||
String msg = Lang.get("stageEditorCustomDataPrompt");
|
||||
msg = msg.replace("<data>", ChatColor.BOLD + temp + ChatColor.RESET + ChatColor.YELLOW);
|
||||
msg = msg.replace("<data>", ChatColor.GOLD + temp + ChatColor.YELLOW);
|
||||
text += ChatColor.YELLOW + msg;
|
||||
return text;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue