Migrate to dynamic dependency loading

This commit is contained in:
ceze88 2024-01-07 14:36:57 +01:00
parent d9e7a5f0db
commit 08b25e8852
42 changed files with 142 additions and 106 deletions

View File

@ -3,7 +3,7 @@ package com.craftaro.epicspawners.api.spawners.spawner;
import com.craftaro.core.compatibility.CompatibleHand;
import com.craftaro.core.database.Data;
import com.craftaro.core.nms.world.SpawnedEntity;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.api.boosts.types.Boosted;
import org.bukkit.Location;
import org.bukkit.OfflinePlayer;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicspawners.api.spawners.spawner;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import java.util.Collection;
import java.util.List;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicspawners.api.spawners.spawner;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.api.particles.ParticleDensity;
import com.craftaro.epicspawners.api.particles.ParticleEffect;
import com.craftaro.epicspawners.api.particles.ParticleType;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicspawners.api.utils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.SkullUtils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.SkullUtils;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerTier;
import org.bukkit.inventory.ItemStack;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicspawners.api.utils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.api.particles.ParticleDensity;
import com.craftaro.epicspawners.api.particles.ParticleEffect;
import com.craftaro.epicspawners.api.particles.ParticleType;

View File

@ -56,8 +56,18 @@
<excludeDefaults>false</excludeDefaults>
<includes>
<include>**/nms/v*/**</include>
<include>**/core/third_party/**</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>

View File

@ -5,15 +5,14 @@ import com.craftaro.core.SongodaPlugin;
import com.craftaro.core.commands.CommandManager;
import com.craftaro.core.configuration.Config;
import com.craftaro.core.database.DataManager;
import com.craftaro.core.dependency.Dependency;
import com.craftaro.core.gui.GuiManager;
import com.craftaro.core.hooks.EconomyManager;
import com.craftaro.core.hooks.EntityStackerManager;
import com.craftaro.core.hooks.HologramManager;
import com.craftaro.core.hooks.ProtectionManager;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.third_party.org.jooq.Record;
import com.craftaro.core.third_party.org.jooq.Result;
import com.craftaro.core.third_party.org.jooq.impl.DSL;
import com.craftaro.epicspawners.database.DataHelper;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.api.EpicSpawnersApi;
import com.craftaro.epicspawners.api.boosts.types.Boosted;
import com.craftaro.epicspawners.api.player.PlayerData;
@ -70,7 +69,9 @@ import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import java.util.function.Consumer;
@ -98,6 +99,11 @@ public class EpicSpawners extends SongodaPlugin {
return getPlugin(EpicSpawners.class);
}
@Override
protected Set<Dependency> getDependencies() {
return new HashSet<>();
}
@Override
public void onPluginLoad() {
}
@ -208,48 +214,7 @@ public class EpicSpawners extends SongodaPlugin {
List<SpawnerStack> stacks = dataManager.loadBatch(SpawnerStackImpl.class, "spawner_stacks");
loadHolograms();
List<Boosted> boosted = new ArrayList<>();
String prefix = dataManager.getTablePrefix();
dataManager.getDatabaseConnector().connectDSL(dslContext -> {
dslContext.select().from(DSL.table(prefix + "boosted_players")).fetch().forEach(record -> {
boosted.add(new BoostedPlayerImpl(
UUID.fromString(record.get("player").toString()),
Integer.parseInt(record.get("amount").toString()),
Long.parseLong(record.get("end_time").toString())
));
});
dslContext.select().from(DSL.table(prefix + "boosted_spawners")).fetch().forEach(record -> {
Location location = new Location(
Bukkit.getWorld(record.get("world").toString()),
Double.parseDouble(record.get("x").toString()),
Double.parseDouble(record.get("y").toString()),
Double.parseDouble(record.get("z").toString()));
boosted.add(new BoostedSpawnerImpl(
location,
Integer.parseInt(record.get("amount").toString()),
Long.parseLong(record.get("end_time").toString())
));
});
});
this.boostManager.addBoosts(boosted);
//Load entity kills
dataManager.getDatabaseConnector().connectDSL(dslContext -> {
@NotNull Result<Record> results = dslContext.select().from(dataManager.getTablePrefix() + "entity_kills").fetch();
results.stream().iterator().forEachRemaining(record -> {
UUID uuid = UUID.fromString(record.get("player").toString());
EntityType entityType = EntityType.valueOf(record.get("entity_type").toString());
int amount = 0;
try {
amount = Integer.parseInt(record.get("count").toString());
} catch (NumberFormatException ex) {
amount = Double.valueOf(record.get("count").toString()).intValue();
}
PlayerData playerData = this.playerActionManager.getPlayerData(uuid);
playerData.addKilledEntity(entityType, amount);
});
});
DataHelper.loadData(dataManager, this.boostManager, this.playerActionManager);
}
@Override
@ -404,16 +369,7 @@ public class EpicSpawners extends SongodaPlugin {
}
}
private boolean isCoreProtectEnabled() {
return this.coreProtectAPI != null;
}
public void logCoreProtect(Consumer<CoreProtectAPI> coreProtectAPI) {
if (!isCoreProtectEnabled()) {
return;
}
coreProtectAPI.accept(this.coreProtectAPI);
}
public SpawnManager getSpawnManager() {
return this.spawnManager;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicspawners.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.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.PlacedSpawner;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicspawners.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.core.world.SSpawner;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.PlacedSpawner;

View File

@ -0,0 +1,69 @@
package com.craftaro.epicspawners.database;
import com.craftaro.core.database.DataManager;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.boosts.BoostManager;
import com.craftaro.epicspawners.api.boosts.types.Boosted;
import com.craftaro.epicspawners.api.player.PlayerData;
import com.craftaro.epicspawners.boost.BoostManagerImpl;
import com.craftaro.epicspawners.boost.types.BoostedPlayerImpl;
import com.craftaro.epicspawners.boost.types.BoostedSpawnerImpl;
import com.craftaro.epicspawners.player.PlayerDataManagerImpl;
import com.craftaro.third_party.org.jooq.Record;
import com.craftaro.third_party.org.jooq.Result;
import com.craftaro.third_party.org.jooq.impl.DSL;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.EntityType;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class DataHelper {
public static void loadData(DataManager dataManager, BoostManagerImpl boostManager, PlayerDataManagerImpl playerActionManager) {
List<Boosted> boosted = new ArrayList<>();
String prefix = dataManager.getTablePrefix();
dataManager.getDatabaseConnector().connectDSL(dslContext -> {
dslContext.select().from(DSL.table(prefix + "boosted_players")).fetch().forEach(record -> {
boosted.add(new BoostedPlayerImpl(
UUID.fromString(record.get("player").toString()),
Integer.parseInt(record.get("amount").toString()),
Long.parseLong(record.get("end_time").toString())
));
});
dslContext.select().from(DSL.table(prefix + "boosted_spawners")).fetch().forEach(record -> {
Location location = new Location(
Bukkit.getWorld(record.get("world").toString()),
Double.parseDouble(record.get("x").toString()),
Double.parseDouble(record.get("y").toString()),
Double.parseDouble(record.get("z").toString()));
boosted.add(new BoostedSpawnerImpl(
location,
Integer.parseInt(record.get("amount").toString()),
Long.parseLong(record.get("end_time").toString())
));
});
});
boostManager.addBoosts(boosted);
//Load entity kills
dataManager.getDatabaseConnector().connectDSL(dslContext -> {
@NotNull Result<Record> results = dslContext.select().from(dataManager.getTablePrefix() + "entity_kills").fetch();
results.stream().iterator().forEachRemaining(record -> {
UUID uuid = UUID.fromString(record.get("player").toString());
EntityType entityType = EntityType.valueOf(record.get("entity_type").toString());
int amount = 0;
try {
amount = Integer.parseInt(record.get("count").toString());
} catch (NumberFormatException ex) {
amount = Double.valueOf(record.get("count").toString()).intValue();
}
PlayerData playerData = playerActionManager.getPlayerData(uuid);
playerData.addKilledEntity(entityType, amount);
});
});
}
}

View File

@ -5,7 +5,7 @@ import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.lootables.gui.GuiLootableEditor;
import com.craftaro.core.lootables.loot.LootManager;
import com.craftaro.core.lootables.loot.Lootable;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.ItemUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerTier;

View File

@ -4,7 +4,7 @@ import com.craftaro.core.gui.AnvilGui;
import com.craftaro.core.gui.Gui;
import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.input.ChatPrompt;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.PlayerUtils;
import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;

View File

@ -3,7 +3,7 @@ package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.AnvilGui;
import com.craftaro.core.gui.Gui;
import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.NumberUtils;
import com.craftaro.core.utils.PlayerUtils;
import com.craftaro.core.utils.TextUtils;

View File

@ -4,7 +4,7 @@ import com.craftaro.core.gui.AnvilGui;
import com.craftaro.core.gui.Gui;
import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.input.ChatPrompt;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;

View File

@ -2,7 +2,7 @@ package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.Gui;
import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.particles.ParticleDensity;

View File

@ -2,7 +2,7 @@ package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.Gui;
import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;

View File

@ -3,7 +3,7 @@ package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.AnvilGui;
import com.craftaro.core.gui.Gui;
import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.NumberUtils;
import com.craftaro.core.utils.PlayerUtils;
import com.craftaro.core.utils.TextUtils;

View File

@ -3,7 +3,7 @@ package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.Gui;
import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.input.ChatPrompt;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.PlacedSpawner;

View File

@ -4,13 +4,13 @@ import com.craftaro.core.database.DataManager;
import com.craftaro.core.gui.CustomizableGui;
import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.hooks.EconomyManager;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XSound;
import com.craftaro.core.third_party.org.apache.commons.lang3.math.NumberUtils;
import com.craftaro.core.third_party.org.apache.commons.text.WordUtils;
import com.craftaro.core.third_party.org.jooq.Record;
import com.craftaro.core.third_party.org.jooq.Result;
import com.craftaro.core.third_party.org.jooq.impl.DSL;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XSound;
import com.craftaro.third_party.org.apache.commons.lang3.math.NumberUtils;
import com.craftaro.third_party.org.apache.commons.text.WordUtils;
import com.craftaro.third_party.org.jooq.Record;
import com.craftaro.third_party.org.jooq.Result;
import com.craftaro.third_party.org.jooq.impl.DSL;
import com.craftaro.core.utils.ItemUtils;
import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;

View File

@ -3,7 +3,7 @@ package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.CustomizableGui;
import com.craftaro.core.gui.GuiUtils;
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.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerStack;

View File

@ -2,7 +2,7 @@ package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.CustomizableGui;
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.core.utils.NumberUtils;
import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;

View File

@ -3,7 +3,7 @@ package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.CustomizableGui;
import com.craftaro.core.gui.GuiUtils;
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.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;

View File

@ -4,7 +4,7 @@ import com.craftaro.core.gui.CustomizableGui;
import com.craftaro.core.gui.Gui;
import com.craftaro.core.gui.GuiUtils;
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.core.utils.ItemUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;

View File

@ -2,7 +2,7 @@ package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.CustomizableGui;
import com.craftaro.core.gui.GuiUtils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicspawners.gui;
import com.craftaro.core.gui.CustomizableGui;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.NumberUtils;
import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;

View File

@ -3,7 +3,7 @@ package com.craftaro.epicspawners.listeners;
import com.craftaro.core.compatibility.CompatibleHand;
import com.craftaro.core.compatibility.ServerVersion;
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.core.utils.ItemUtils;
import com.craftaro.core.utils.PlayerUtils;
import com.craftaro.core.world.SItemStack;

View File

@ -4,7 +4,7 @@ import com.craftaro.core.compatibility.CompatibleHand;
import com.craftaro.core.compatibility.CompatibleMaterial;
import com.craftaro.core.compatibility.ServerVersion;
import com.craftaro.core.hooks.ProtectionManager;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.ItemUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.events.SpawnerAccessEvent;

View File

@ -7,7 +7,7 @@ import com.craftaro.core.lootables.loot.Drop;
import com.craftaro.core.lootables.loot.Loot;
import com.craftaro.core.lootables.loot.LootManager;
import com.craftaro.core.lootables.loot.Lootable;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerTier;
import org.bukkit.enchantments.Enchantment;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicspawners.player;
import com.craftaro.core.database.DataManager;
import com.craftaro.core.third_party.org.jooq.impl.DSL;
import com.craftaro.third_party.org.jooq.impl.DSL;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.player.PlayerData;
import org.bukkit.Bukkit;

View File

@ -4,7 +4,7 @@ import com.craftaro.core.configuration.Config;
import com.craftaro.core.configuration.ConfigSetting;
import com.craftaro.core.hooks.EconomyManager;
import com.craftaro.core.hooks.HologramManager;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.EpicSpawners;
import java.util.stream.Collectors;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicspawners.spawners.condition;
import com.craftaro.core.third_party.org.apache.commons.text.WordUtils;
import com.craftaro.third_party.org.apache.commons.text.WordUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.condition.SpawnCondition;
import com.craftaro.epicspawners.api.spawners.spawner.PlacedSpawner;

View File

@ -6,9 +6,10 @@ import com.craftaro.core.database.Data;
import com.craftaro.core.database.DataManager;
import com.craftaro.core.database.SerializedLocation;
import com.craftaro.core.nms.world.SpawnedEntity;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XSound;
import com.craftaro.core.third_party.org.jooq.impl.DSL;
import com.craftaro.epicspawners.utils.CoreProtectLogger;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XSound;
import com.craftaro.third_party.org.jooq.impl.DSL;
import com.craftaro.core.utils.PlayerUtils;
import com.craftaro.core.world.SSpawner;
import com.craftaro.epicspawners.EpicSpawners;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicspawners.spawners.spawner;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerTier;
import com.craftaro.epicspawners.spawners.condition.SpawnConditionBiome;

View File

@ -2,9 +2,9 @@ package com.craftaro.epicspawners.spawners.spawner;
import com.craftaro.core.compatibility.CompatibleBiome;
import com.craftaro.core.configuration.Config;
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.core.third_party.org.apache.commons.text.WordUtils;
import com.craftaro.third_party.org.apache.commons.text.WordUtils;
import com.craftaro.core.utils.EntityUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.particles.ParticleDensity;

View File

@ -2,7 +2,7 @@ package com.craftaro.epicspawners.spawners.spawner;
import com.craftaro.core.database.Data;
import com.craftaro.core.hooks.EconomyManager;
import com.craftaro.core.third_party.org.jooq.impl.DSL;
import com.craftaro.third_party.org.jooq.impl.DSL;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.events.SpawnerChangeEvent;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerData;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicspawners.spawners.spawner;
import com.craftaro.core.gui.GuiUtils;
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.core.utils.TextUtils;
import com.craftaro.epicspawners.EpicSpawners;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicspawners.spawners.spawner.option;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XBlock;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XBlock;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.boosts.types.Boosted;
import com.craftaro.epicspawners.api.spawners.spawner.PlacedSpawner;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicspawners.spawners.spawner.option;
import com.craftaro.core.third_party.org.apache.commons.lang3.math.NumberUtils;
import com.craftaro.third_party.org.apache.commons.lang3.math.NumberUtils;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.boosts.types.Boosted;
import com.craftaro.epicspawners.api.spawners.spawner.PlacedSpawner;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicspawners.spawners.spawner.option;
import com.craftaro.core.compatibility.ServerVersion;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XSound;
import com.craftaro.third_party.com.cryptomorin.xseries.XSound;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.boosts.types.Boosted;
import com.craftaro.epicspawners.api.spawners.spawner.PlacedSpawner;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicspawners.tasks;
import com.craftaro.core.compatibility.ServerVersion;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.PlacedSpawner;
import com.craftaro.epicspawners.api.spawners.spawner.SpawnerStack;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicspawners.tasks;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.EpicSpawners;
import com.craftaro.epicspawners.api.spawners.spawner.PlacedSpawner;
import com.craftaro.epicspawners.settings.Settings;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicspawners.utils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicspawners.api.particles.ParticleDensity;
import com.craftaro.epicspawners.api.particles.ParticleEffect;
import com.craftaro.epicspawners.api.particles.ParticleType;