Fixed deprecation
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user