From 34901e892993e9f181224db43fa33de190cee117 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 30 Jul 2021 00:33:32 +0100 Subject: [PATCH] Changed default special gradient --- .../com/willfp/ecoenchants/display/EnchantmentCache.java | 5 ++++- eco-core/core-plugin/src/main/resources/lang.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantmentCache.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantmentCache.java index 15882617..8582006e 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantmentCache.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantmentCache.java @@ -134,10 +134,13 @@ public class EnchantmentCache { String rawName = name; if (color.contains("{}")) { - name = StringUtils.format(color.replace("{}", name)); + name = color.replace("{}", name); } else { name = color + name; } + + name = StringUtils.format(name); + description.replaceAll(line -> Display.PREFIX + PLUGIN.getDisplayModule().getOptions().getDescriptionOptions().getColor() + line); CACHE.put(enchantment.getKey(), new CacheEntry(enchantment, name, rawName, description, type, rarity)); } diff --git a/eco-core/core-plugin/src/main/resources/lang.yml b/eco-core/core-plugin/src/main/resources/lang.yml index 344b243c..3c9e919b 100644 --- a/eco-core/core-plugin/src/main/resources/lang.yml +++ b/eco-core/core-plugin/src/main/resources/lang.yml @@ -36,7 +36,7 @@ no-conflicts: "&cNo conflicts" curse-color: "&c" normal-color: "&7" -special-color: "{}" +special-color: "{}&d" artifact-color: "&e" spell-color: "&9"