Updated criticals desc and fixed formatting bug

This commit is contained in:
Auxilor
2021-08-04 19:07:47 +01:00
parent 29d41cc284
commit 31f0709753
2 changed files with 3 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
package com.willfp.ecoenchants.enchantments;
import com.willfp.eco.core.Prerequisite;
import com.willfp.eco.util.StringUtils;
import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.ecoenchants.config.configs.EnchantmentConfig;
import com.willfp.ecoenchants.enchantments.meta.EnchantmentRarity;
@@ -207,9 +206,8 @@ 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", false);
description = description.replace("&r", this.getPlugin().getLangYml().getString("description-color") + "&r");
description = StringUtils.format(description);
description = config.getString("description");
description = description.replace("§r", "§r" + this.getPlugin().getLangYml().getString("description-color"));
disabledWorldNames.clear();
disabledWorldNames.addAll(config.getStrings(EcoEnchants.GENERAL_LOCATION + "disabled-in-worlds"));
disabledWorlds.clear();

View File

@@ -3,7 +3,7 @@
#
name: "Criticals"
description: Increases critical damage by &c%value%%&r.
description: Increases critical damage by &a%value%%&r.
enabled: true
obtaining: