diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/Main.java b/Plugin/src/main/java/com/willfp/ecoenchants/Main.java index cf35e302..3504bc5a 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/Main.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/Main.java @@ -35,11 +35,6 @@ public class Main extends JavaPlugin { */ public static boolean hasAE; - /** - * Has Essentials? - */ - public static boolean hasEssentials; - /** * ProtocolLib */ diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java b/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java index 2e94ff0a..b9e45762 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchant.java @@ -100,12 +100,6 @@ public abstract class EcoEnchant extends Enchantment implements Listener { f.setAccessible(false); Enchantment.registerEnchantment(this); - - if(Main.hasEssentials) { - Map essentialsMap = (Map) FieldUtils.readDeclaredStaticField(Enchantments.class, "ENCHANTMENTS", true); - essentialsMap.remove(this.getName()); - essentialsMap.put(this.getName(), this); - } } catch (NoSuchFieldException | IllegalAccessException ignored) {} } diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/loader/Loader.java b/Plugin/src/main/java/com/willfp/ecoenchants/loader/Loader.java index a534dcd6..6507ec8a 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/loader/Loader.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/loader/Loader.java @@ -147,10 +147,6 @@ public class Loader { if(Main.hasAE) Bukkit.getLogger().info("AdvancedEnchantments: §aENABLED"); else Bukkit.getLogger().info("AdvancedEnchantments: §9DISABLED"); - Main.hasEssentials = Bukkit.getPluginManager().isPluginEnabled("Essentials"); - if(Main.hasEssentials) Bukkit.getLogger().info("Essentials: §aENABLED"); - else Bukkit.getLogger().info("Essentials: §9DISABLED"); - Bukkit.getLogger().info(""); Bukkit.getLogger().info("Loading Anticheat Integrations...");