mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-24 20:07:34 +01:00
Fixed config bug
This commit is contained in:
parent
9bdc97143f
commit
63657f2d52
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user