mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-27 18:51:34 +01:00
Recolor duplicate custom messages
This commit is contained in:
parent
a2bc97dfa0
commit
513a4e8be0
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user