mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Removed essentials integration for further development
This commit is contained in:
parent
e785c9350c
commit
9abc4408ab
@ -35,11 +35,6 @@ public class Main extends JavaPlugin {
|
|||||||
*/
|
*/
|
||||||
public static boolean hasAE;
|
public static boolean hasAE;
|
||||||
|
|
||||||
/**
|
|
||||||
* Has Essentials?
|
|
||||||
*/
|
|
||||||
public static boolean hasEssentials;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProtocolLib
|
* ProtocolLib
|
||||||
*/
|
*/
|
||||||
|
@ -100,12 +100,6 @@ public abstract class EcoEnchant extends Enchantment implements Listener {
|
|||||||
f.setAccessible(false);
|
f.setAccessible(false);
|
||||||
|
|
||||||
Enchantment.registerEnchantment(this);
|
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) {}
|
} catch (NoSuchFieldException | IllegalAccessException ignored) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,10 +147,6 @@ public class Loader {
|
|||||||
if(Main.hasAE) Bukkit.getLogger().info("AdvancedEnchantments: §aENABLED");
|
if(Main.hasAE) Bukkit.getLogger().info("AdvancedEnchantments: §aENABLED");
|
||||||
else Bukkit.getLogger().info("AdvancedEnchantments: §9DISABLED");
|
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("");
|
||||||
Bukkit.getLogger().info("Loading Anticheat Integrations...");
|
Bukkit.getLogger().info("Loading Anticheat Integrations...");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user