mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-25 19:55:22 +01:00
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:
parent
afbb81428f
commit
f5c737d43d
7
pom.xml
7
pom.xml
@ -180,13 +180,6 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>bammerbom</groupId>
|
|
||||||
<artifactId>UltimateCore</artifactId>
|
|
||||||
<version>2.1.26</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.Zrips</groupId>
|
<groupId>com.github.Zrips</groupId>
|
||||||
<artifactId>CMI-API</artifactId>
|
<artifactId>CMI-API</artifactId>
|
||||||
|
@ -4,7 +4,6 @@ import com.craftaro.ultimatekits.UltimateKits;
|
|||||||
import com.craftaro.ultimatekits.conversion.hooks.CMIHook;
|
import com.craftaro.ultimatekits.conversion.hooks.CMIHook;
|
||||||
import com.craftaro.ultimatekits.conversion.hooks.DefaultHook;
|
import com.craftaro.ultimatekits.conversion.hooks.DefaultHook;
|
||||||
import com.craftaro.ultimatekits.conversion.hooks.EssentialsHook;
|
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.Kit;
|
||||||
import com.craftaro.ultimatekits.kit.KitItem;
|
import com.craftaro.ultimatekits.kit.KitItem;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
@ -25,8 +24,6 @@ public class Convert {
|
|||||||
convertKits(plugin, new EssentialsHook());
|
convertKits(plugin, new EssentialsHook());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Bukkit.getPluginManager().isPluginEnabled("UltimateCore"))
|
|
||||||
convertKits(plugin, new UltimateCoreHook());
|
|
||||||
if (Bukkit.getPluginManager().isPluginEnabled("CMI"))
|
if (Bukkit.getPluginManager().isPluginEnabled("CMI"))
|
||||||
convertKits(plugin, new CMIHook());
|
convertKits(plugin, new CMIHook());
|
||||||
}
|
}
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user