diff --git a/pom.xml b/pom.xml index 0b01ae9..3163964 100644 --- a/pom.xml +++ b/pom.xml @@ -180,13 +180,6 @@ provided - - bammerbom - UltimateCore - 2.1.26 - provided - - com.github.Zrips CMI-API diff --git a/src/main/java/com/craftaro/ultimatekits/conversion/Convert.java b/src/main/java/com/craftaro/ultimatekits/conversion/Convert.java index 1c2c5ac..3096b4d 100644 --- a/src/main/java/com/craftaro/ultimatekits/conversion/Convert.java +++ b/src/main/java/com/craftaro/ultimatekits/conversion/Convert.java @@ -4,7 +4,6 @@ import com.craftaro.ultimatekits.UltimateKits; import com.craftaro.ultimatekits.conversion.hooks.CMIHook; import com.craftaro.ultimatekits.conversion.hooks.DefaultHook; import com.craftaro.ultimatekits.conversion.hooks.EssentialsHook; -import com.craftaro.ultimatekits.conversion.hooks.UltimateCoreHook; import com.craftaro.ultimatekits.kit.Kit; import com.craftaro.ultimatekits.kit.KitItem; import org.bukkit.Bukkit; @@ -25,8 +24,6 @@ public class Convert { convertKits(plugin, new EssentialsHook()); } } - if (Bukkit.getPluginManager().isPluginEnabled("UltimateCore")) - convertKits(plugin, new UltimateCoreHook()); if (Bukkit.getPluginManager().isPluginEnabled("CMI")) convertKits(plugin, new CMIHook()); } diff --git a/src/main/java/com/craftaro/ultimatekits/conversion/hooks/UltimateCoreHook.java b/src/main/java/com/craftaro/ultimatekits/conversion/hooks/UltimateCoreHook.java deleted file mode 100644 index f8090da..0000000 --- a/src/main/java/com/craftaro/ultimatekits/conversion/hooks/UltimateCoreHook.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.craftaro.ultimatekits.conversion.hooks; - -import bammerbom.ultimatecore.bukkit.api.UC; -import bammerbom.ultimatecore.bukkit.api.UKit; -import com.craftaro.ultimatekits.conversion.ConversionKit; -import com.craftaro.ultimatekits.conversion.Hook; -import org.bukkit.inventory.ItemStack; - -import java.util.*; - -public class UltimateCoreHook implements Hook { - - @Override - public Map getKits() { - Map list = new LinkedHashMap<>(); - List kits = UC.getServer().getKits(); - for (UKit kit : kits) { - list.put(kit.getName(), new ConversionKit(new HashSet<>(kit.getItems()), 0)); - } - return list; - } -}