Fixed load-order bug

This commit is contained in:
Auxilor 2021-08-04 18:40:33 +01:00
parent 352e2ab43c
commit ef0379900f

View File

@ -208,7 +208,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
maxLevel = config.getInt(EcoEnchants.GENERAL_LOCATION + "maximum-level", 1);
displayName = config.getString("name");
description = config.getString("description", false);
description = description.replace("&r", this.getPlugin().getDisplayModule().getOptions().getDescriptionOptions().getColor() + "&r");
description = description.replace("&r", this.getPlugin().getLangYml().getString("description-color") + "&r");
description = StringUtils.format(description);
disabledWorldNames.clear();
disabledWorldNames.addAll(config.getStrings(EcoEnchants.GENERAL_LOCATION + "disabled-in-worlds"));