From f5c737d43d2ad9ff3593c55de3c0c67282036f5e Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Mon, 13 May 2024 11:27:20 +0200 Subject: [PATCH] feat!: drop support for converting JonathanBrouwer/UltimateCore kits UltimateCore hasn't been updated for 5 years now, the version we build against even 8 years. It causes trouble with builds because I don't see what repository is supposed to have it. Let's just get rid of it tbh. --- pom.xml | 7 ------ .../ultimatekits/conversion/Convert.java | 3 --- .../conversion/hooks/UltimateCoreHook.java | 22 ------------------- 3 files changed, 32 deletions(-) delete mode 100644 src/main/java/com/craftaro/ultimatekits/conversion/hooks/UltimateCoreHook.java 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; - } -}