diff --git a/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java b/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java index bc70398f2..cf28685d8 100644 --- a/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java +++ b/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java @@ -95,7 +95,8 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil { ItemMeta meta = is.getItemMeta(); if (meta.hasDisplayName()) { - cc.setSessionData("tempDisplay", ChatColor.stripColor(meta.getDisplayName())); + String display = meta.getDisplayName().replace(ChatColor.COLOR_CHAR, '&'); + cc.setSessionData("tempDisplay", display); } if (meta.hasLore()) { LinkedList lore = new LinkedList(); @@ -185,7 +186,7 @@ public class ItemStackPrompt extends FixedSetPrompt implements ColorUtil { enchs = (Map) cc.getSessionData("tempEnchantments"); } if (cc.getSessionData("tempDisplay") != null) { - display = (String) cc.getSessionData("tempDisplay"); + display = ChatColor.translateAlternateColorCodes('&', (String) cc.getSessionData("tempDisplay")); } if (cc.getSessionData("tempLore") != null) { lore = (LinkedList) cc.getSessionData("tempLore");