Allow color codes and tags in objective-overrides, fixes #1047

This commit is contained in:
PikaMug 2020-01-22 00:06:39 -05:00
parent a910247fa3
commit 9306119d5d

View File

@ -663,7 +663,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
}
if (!ignoreOverrides) {
if (quester.getCurrentStage(quest).objectiveOverride != null) {
String message = ChatColor.GREEN + quester.getCurrentStage(quest).objectiveOverride;
String message = ChatColor.GREEN + ConfigUtil.parseString(ChatColor.GREEN
+ ChatColor.translateAlternateColorCodes('&',
quester.getCurrentStage(quest).objectiveOverride), quest, quester.getPlayer());
if (depends.getPlaceholderApi() != null) {
message = PlaceholderAPI.setPlaceholders(quester.getPlayer(), message);
}