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); context.setSessionData(CK.REQ_CUSTOM_DATA, dataMapList);
} else { } else {
// Already added, so inform user // 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); return new CustomRequirementsPrompt(moduleName, context);
} }
} else { } else {

View File

@ -1927,7 +1927,7 @@ public class RewardsPrompt extends QuestsEditorNumericPrompt {
context.setSessionData(CK.REW_CUSTOM_DATA, dataMapList); context.setSessionData(CK.REW_CUSTOM_DATA, dataMapList);
} else { } else {
// Already added, so inform user // 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); return new CustomRewardsPrompt(moduleName, context);
} }
} else { } else {

View File

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