mirror of
https://github.com/craftaro/EpicSpawners.git
synced 2025-01-08 11:37:51 +08:00
Migrate to dynamic dependency loading
This commit is contained in:
parent
d9e7a5f0db
commit
08b25e8852
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user