diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/EcoEnchantsPlugin.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/EcoEnchantsPlugin.java index a6d006e5..3e83751f 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/EcoEnchantsPlugin.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/EcoEnchantsPlugin.java @@ -74,7 +74,7 @@ public class EcoEnchantsPlugin extends EcoPlugin { * Internal constructor called by bukkit on plugin load. */ public EcoEnchantsPlugin() { - super("EcoEnchants", 79573, 7666, "com.willfp.ecoenchants.proxy", "&a"); + super(79573, 7666, "com.willfp.ecoenchants.proxy", "&a"); instance = this; rarityYml = new RarityYml(this); diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/WatcherTriggers.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/WatcherTriggers.java index c817d7da..8e5c4c43 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/WatcherTriggers.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/WatcherTriggers.java @@ -54,7 +54,7 @@ public class WatcherTriggers extends PluginDependent implements Listener { */ @ConfigUpdater public static void update(@NotNull final EcoEnchantsPlugin plugin) { - allowOnNPC = plugin.getConfig().getBoolean("allow-on-npc"); + allowOnNPC = plugin.getConfigYml().getBool("allow-on-npc"); } /**