Consolidate custom data string formatting

This commit is contained in:
PikaMug 2022-07-03 18:40:29 -04:00
parent 565bfe02e0
commit f12a592f06
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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