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.
This commit is contained in:
Christian Koop 2024-05-13 11:27:20 +02:00
parent afbb81428f
commit f5c737d43d
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
3 changed files with 0 additions and 32 deletions

View File

@ -180,13 +180,6 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>bammerbom</groupId>
<artifactId>UltimateCore</artifactId>
<version>2.1.26</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.Zrips</groupId>
<artifactId>CMI-API</artifactId>

View File

@ -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());
}

View File

@ -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<String, ConversionKit> getKits() {
Map<String, ConversionKit> list = new LinkedHashMap<>();
List<UKit> kits = UC.getServer().getKits();
for (UKit kit : kits) {
list.put(kit.getName(), new ConversionKit(new HashSet<>(kit.getItems()), 0));
}
return list;
}
}