mirror of
https://github.com/songoda/EpicEnchants.git
synced 2024-12-22 09:08:01 +01:00
Migrate to dynamic dependency loading
This commit is contained in:
parent
13336f72d5
commit
fb406122d8
11
pom.xml
11
pom.xml
@ -74,6 +74,17 @@
|
||||
<includes>
|
||||
<include>**/nms/v*/**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/third_party/org/apache/**</exclude>
|
||||
<exclude>**/third_party/net/kyori/**</exclude>
|
||||
<exclude>**/third_party/com/zaxxer/**</exclude>
|
||||
<exclude>**/third_party/org/jooq/**</exclude>
|
||||
<exclude>**/third_party/org/mariadb/**</exclude>
|
||||
<exclude>**/third_party/com/h2database/**</exclude>
|
||||
<exclude>**/third_party/org/h2/**</exclude>
|
||||
<exclude>**/third_party/com/cryptomorin/**</exclude>
|
||||
<exclude>**/third_party/org/reactivestreams/**</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
</filters>
|
||||
</configuration>
|
||||
|
@ -4,9 +4,10 @@ import com.craftaro.core.SongodaCore;
|
||||
import com.craftaro.core.SongodaPlugin;
|
||||
import com.craftaro.core.commands.CommandManager;
|
||||
import com.craftaro.core.configuration.Config;
|
||||
import com.craftaro.core.dependency.Dependency;
|
||||
import com.craftaro.core.gui.GuiManager;
|
||||
import com.craftaro.core.hooks.EconomyManager;
|
||||
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.epicenchants.listeners.ArmorListener;
|
||||
import com.craftaro.epicenchants.listeners.EntityListener;
|
||||
import com.craftaro.epicenchants.listeners.HeldItemListener;
|
||||
@ -39,7 +40,9 @@ import com.craftaro.epicenchants.utils.single.ItemGroup;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class EpicEnchants extends SongodaPlugin {
|
||||
@ -54,6 +57,11 @@ public class EpicEnchants extends SongodaPlugin {
|
||||
private EnchantUtils enchantUtils;
|
||||
private ItemGroup itemGroup;
|
||||
|
||||
@Override
|
||||
protected Set<Dependency> getDependencies() {
|
||||
return new HashSet<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPluginLoad() {
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.craftaro.epicenchants.commands;
|
||||
|
||||
import com.craftaro.core.commands.AbstractCommand;
|
||||
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.epicenchants.objects.Enchant;
|
||||
import com.craftaro.epicenchants.CommandCommons;
|
||||
import com.craftaro.epicenchants.EpicEnchants;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.craftaro.epicenchants.effect.effects;
|
||||
|
||||
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.epicenchants.effect.EffectExecutor;
|
||||
import com.craftaro.epicenchants.enums.EventType;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.craftaro.epicenchants.listeners.item;
|
||||
|
||||
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.core.third_party.de.tr7zw.nbtapi.NBTItem;
|
||||
import com.craftaro.epicenchants.events.EnchantApplyEvent;
|
||||
import com.craftaro.epicenchants.objects.Enchant;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.craftaro.epicenchants.listeners.item;
|
||||
|
||||
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.core.third_party.de.tr7zw.nbtapi.NBTItem;
|
||||
import com.craftaro.epicenchants.EpicEnchants;
|
||||
import com.craftaro.epicenchants.utils.objects.ItemBuilder;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.craftaro.epicenchants.objects;
|
||||
|
||||
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.epicenchants.effect.EffectExecutor;
|
||||
import com.craftaro.epicenchants.enums.EventType;
|
||||
import com.craftaro.epicenchants.enums.TriggerType;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.craftaro.epicenchants.utils.objects;
|
||||
|
||||
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.core.third_party.de.tr7zw.nbtapi.NBTItem;
|
||||
import com.craftaro.epicenchants.objects.Placeholder;
|
||||
import com.craftaro.epicenchants.wrappers.EnchantmentWrapper;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.craftaro.epicenchants.utils.single;
|
||||
|
||||
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
|
||||
import com.google.common.collect.HashMultimap;
|
||||
import com.google.common.collect.Multimap;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
@ -15,7 +15,7 @@ import java.util.Optional;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial.*;
|
||||
import static com.craftaro.third_party.com.cryptomorin.xseries.XMaterial.*;
|
||||
|
||||
public class ItemGroup {
|
||||
|
||||
|
BIN
src/main/java/com/songoda/epicenchants/.DS_Store
vendored
BIN
src/main/java/com/songoda/epicenchants/.DS_Store
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user