mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Fixed description wrapping
This commit is contained in:
parent
31f0709753
commit
3b94288434
@ -102,7 +102,7 @@ public class EnchantmentCache {
|
||||
EnchantmentRarity rarity;
|
||||
List<String> description;
|
||||
if (enchantment instanceof EcoEnchant ecoEnchant) {
|
||||
description = ecoEnchant.getWrappedDescription();
|
||||
description = StringUtils.formatList(ecoEnchant.getWrappedDescription());
|
||||
name = ecoEnchant.getDisplayName();
|
||||
type = ecoEnchant.getType();
|
||||
rarity = ecoEnchant.getRarity();
|
||||
|
@ -206,8 +206,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
|
||||
availableFromLoot = config.getBool(EcoEnchants.OBTAINING_LOCATION + "loot");
|
||||
maxLevel = config.getInt(EcoEnchants.GENERAL_LOCATION + "maximum-level", 1);
|
||||
displayName = config.getString("name");
|
||||
description = config.getString("description");
|
||||
description = description.replace("§r", "§r" + this.getPlugin().getLangYml().getString("description-color"));
|
||||
description = config.getString("description", false);
|
||||
disabledWorldNames.clear();
|
||||
disabledWorldNames.addAll(config.getStrings(EcoEnchants.GENERAL_LOCATION + "disabled-in-worlds"));
|
||||
disabledWorlds.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user