Fixed deprecation

This commit is contained in:
Auxilor 2021-07-01 22:31:59 +01:00
parent 8780bd9b5f
commit 0b4899d3e2
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ public class EcoEnchantsPlugin extends EcoPlugin {
* Internal constructor called by bukkit on plugin load. * Internal constructor called by bukkit on plugin load.
*/ */
public EcoEnchantsPlugin() { public EcoEnchantsPlugin() {
super("EcoEnchants", 79573, 7666, "com.willfp.ecoenchants.proxy", "&a"); super(79573, 7666, "com.willfp.ecoenchants.proxy", "&a");
instance = this; instance = this;
rarityYml = new RarityYml(this); rarityYml = new RarityYml(this);

View File

@ -54,7 +54,7 @@ public class WatcherTriggers extends PluginDependent implements Listener {
*/ */
@ConfigUpdater @ConfigUpdater
public static void update(@NotNull final EcoEnchantsPlugin plugin) { public static void update(@NotNull final EcoEnchantsPlugin plugin) {
allowOnNPC = plugin.getConfig().getBoolean("allow-on-npc"); allowOnNPC = plugin.getConfigYml().getBool("allow-on-npc");
} }
/** /**