Removed essentials integration for further development

This commit is contained in:
Auxilor 2020-08-28 22:16:02 +01:00
parent e785c9350c
commit 9abc4408ab
3 changed files with 0 additions and 15 deletions

View File

@ -35,11 +35,6 @@ public class Main extends JavaPlugin {
*/
public static boolean hasAE;
/**
* Has Essentials?
*/
public static boolean hasEssentials;
/**
* ProtocolLib
*/

View File

@ -100,12 +100,6 @@ public abstract class EcoEnchant extends Enchantment implements Listener {
f.setAccessible(false);
Enchantment.registerEnchantment(this);
if(Main.hasEssentials) {
Map<String, Enchantment> essentialsMap = (Map<String, Enchantment>) FieldUtils.readDeclaredStaticField(Enchantments.class, "ENCHANTMENTS", true);
essentialsMap.remove(this.getName());
essentialsMap.put(this.getName(), this);
}
} catch (NoSuchFieldException | IllegalAccessException ignored) {}
}

View File

@ -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...");