Recolor duplicate custom messages

This commit is contained in:
PikaMug 2021-12-29 08:26:12 -05:00
parent a2bc97dfa0
commit 513a4e8be0
3 changed files with 5 additions and 5 deletions

View File

@ -1542,7 +1542,7 @@ public class RequirementsPrompt extends QuestsEditorNumericPrompt {
context.setSessionData(CK.REQ_CUSTOM_DATA, dataMapList);
} else {
// Already added, so inform user
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("reqCustomAlreadyAdded"));
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("reqCustomAlreadyAdded"));
return new CustomRequirementsPrompt(moduleName, context);
}
} else {

View File

@ -1927,7 +1927,7 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
context.setSessionData(CK.REW_CUSTOM_DATA, dataMapList);
} else {
// Already added, so inform user
context.getForWhom().sendRawMessage(ChatColor.YELLOW + Lang.get("rewCustomAlreadyAdded"));
context.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("rewCustomAlreadyAdded"));
return new CustomRewardsPrompt(moduleName, context);
}
} else {

View File

@ -2517,7 +2517,7 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
context.setSessionData(stagePrefix + CK.S_CUSTOM_OBJECTIVES_DATA, dataMapList);
} else {
// Already added, so inform user
context.getForWhom().sendRawMessage(ChatColor.YELLOW
context.getForWhom().sendRawMessage(ChatColor.RED
+ Lang.get("stageEditorCustomAlreadyAdded"));
return new CustomObjectivesPrompt(moduleName, context);
}
@ -2625,7 +2625,7 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
final LinkedList<String> list = (LinkedList<String>) context.getSessionData(stagePrefix
+ CK.S_CUSTOM_OBJECTIVES);
final LinkedList<Entry<String, Object>> dataMapList
= (LinkedList<Entry<String, Object>>) context.getSessionData(stagePrefix
= (LinkedList<Entry<String, Object>>) context.getSessionData(stagePrefix
+ CK.S_CUSTOM_OBJECTIVES_DATA);
if (list != null && plugin != null) {
final String objName = list.getLast();
@ -2748,7 +2748,7 @@ public class StageMainPrompt extends QuestsEditorNumericPrompt {
@SuppressWarnings("unchecked")
final
LinkedList<Entry<String, Object>> dataMapList
= (LinkedList<Entry<String, Object>>) context.getSessionData(stagePrefix
= (LinkedList<Entry<String, Object>>) context.getSessionData(stagePrefix
+ CK.S_CUSTOM_OBJECTIVES_DATA);
final LinkedList<Entry<String, Object>> promptList = new LinkedList<>();
final String temp = (String) context.getSessionData(stagePrefix + CK.S_CUSTOM_OBJECTIVES_DATA_TEMP);