From 63657f2d52c8646dc814ab73b1536b88c5be776a Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 12 Jul 2021 21:02:13 +0200 Subject: [PATCH] Fixed config bug --- .../java/com/willfp/ecoenchants/enchantments/EcoEnchant.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java index 8c6ae550..2ff1bef9 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java @@ -161,7 +161,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche this.type = type; this.permissionName = key.replace("_", ""); - this.config = new EnchantmentConfig(this.permissionName, this.getClass(), this.type); + this.config = new EnchantmentConfig(this.permissionName, this.getClass(), this); if (Bukkit.getPluginManager().getPermission("ecoenchants.fromtable." + permissionName) == null) { Permission permission = new Permission(