Fixed config bug

This commit is contained in:
Auxilor 2021-07-12 21:02:13 +02:00
parent 9bdc97143f
commit 63657f2d52

View File

@ -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(