refactor: rename main package

This commit is contained in:
darksaid98 committed 2024-02-23 02:03:55 +01:00
1 parent 0079b12796
commit eaee1d1828
88 files changed
+360 -379

No files matched your search

+22 -41
View File
@@ -1,5 +1,3 @@
import org.flywaydb.gradle.task.FlywayMigrateTask
import org.jooq.codegen.gradle.CodegenTask
import org.jooq.meta.jaxb.Logging import org.jooq.meta.jaxb.Logging
import java.time.Instant import java.time.Instant
@@ -10,8 +8,8 @@ plugins {
id("xyz.jpenilla.run-paper") version "2.2.2" // Adds runServer and runMojangMappedServer tasks for testing id("xyz.jpenilla.run-paper") version "2.2.2" // Adds runServer and runMojangMappedServer tasks for testing
id("net.minecrell.plugin-yml.bukkit") version "0.6.0" // Automatic plugin.yml generation id("net.minecrell.plugin-yml.bukkit") version "0.6.0" // Automatic plugin.yml generation
id("io.papermc.paperweight.userdev") version "1.5.9" // Used to develop internal plugins using Mojang mappings, See https://github.com/PaperMC/paperweight id("io.papermc.paperweight.userdev") version "1.5.9" // Used to develop internal plugins using Mojang mappings, See https://github.com/PaperMC/paperweight
id("org.flywaydb.flyway") version "10.6.0" // Database migrations id("org.flywaydb.flyway") version "10.8.1" // Database migrations
id("org.jooq.jooq-codegen-gradle") version "3.19.1" id("org.jooq.jooq-codegen-gradle") version "3.19.3"
eclipse eclipse
idea idea
@@ -20,10 +18,11 @@ plugins {
group = "com.github.alathra" group = "com.github.alathra"
version = "3.0.0" version = "3.0.0"
description = "" description = ""
val mainPackage = "${project.group}.${rootProject.name}" val mainPackage = "${project.group}.${rootProject.name.lowercase()}"
java { java {
toolchain.languageVersion.set(JavaLanguageVersion.of(JavaVersion.VERSION_17.majorVersion)) // Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example. toolchain.languageVersion.set(JavaLanguageVersion.of(17)) // Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
withJavadocJar() // Enable Javadoc generation
} }
repositories { repositories {
@@ -87,10 +86,10 @@ dependencies {
// Database Dependencies // Database Dependencies
implementation("com.zaxxer:HikariCP:5.1.0") implementation("com.zaxxer:HikariCP:5.1.0")
library("org.flywaydb:flyway-core:10.6.0") library("org.flywaydb:flyway-core:10.8.1")
library("org.flywaydb:flyway-mysql:10.6.0") library("org.flywaydb:flyway-mysql:10.8.1")
library("org.flywaydb:flyway-database-hsqldb:10.6.0") library("org.flywaydb:flyway-database-hsqldb:10.8.1")
library("org.jooq:jooq:3.19.1") library("org.jooq:jooq:3.19.3")
jooqCodegen("com.h2database:h2:2.2.224") jooqCodegen("com.h2database:h2:2.2.224")
// JDBC Drivers // JDBC Drivers
@@ -109,6 +108,10 @@ tasks {
dependsOn(shadowJar) dependsOn(shadowJar)
} }
jooqCodegen {
dependsOn(flywayMigrate)
}
compileJava { compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
@@ -116,10 +119,18 @@ tasks {
// See https://openjdk.java.net/jeps/247 for more information. // See https://openjdk.java.net/jeps/247 for more information.
options.release.set(17) options.release.set(17)
options.compilerArgs.addAll(arrayListOf("-Xlint:all", "-Xlint:-processing", "-Xdiags:verbose")) options.compilerArgs.addAll(arrayListOf("-Xlint:all", "-Xlint:-processing", "-Xdiags:verbose"))
dependsOn(jooqCodegen) // Generate jOOQ sources before compilation
} }
javadoc { javadoc {
isFailOnError = false
exclude("${mainPackage.replace(".", "/")}/db/schema/**") // Exclude generated jOOQ sources from javadocs
val options = options as StandardJavadocDocletOptions
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
options.overview = "src/main/javadoc/overview.html"
options.tags("apiNote:a:API Note:", "implNote:a:Implementation Note:", "implSpec:a:Implementation Requirements:")
options.use()
} }
processResources { processResources {
@@ -190,6 +201,7 @@ flyway {
url = "jdbc:h2:${project.layout.buildDirectory.get()}/generated/flyway/db;AUTO_SERVER=TRUE;MODE=MySQL;CASE_INSENSITIVE_IDENTIFIERS=TRUE;IGNORECASE=TRUE" url = "jdbc:h2:${project.layout.buildDirectory.get()}/generated/flyway/db;AUTO_SERVER=TRUE;MODE=MySQL;CASE_INSENSITIVE_IDENTIFIERS=TRUE;IGNORECASE=TRUE"
user = "sa" user = "sa"
password = "" password = ""
schemas = listOf("PUBLIC").toTypedArray()
placeholders = mapOf( // Substitute placeholders for flyway placeholders = mapOf( // Substitute placeholders for flyway
"tablePrefix" to "", "tablePrefix" to "",
"columnSuffix" to " VIRTUAL", "columnSuffix" to " VIRTUAL",
@@ -234,37 +246,6 @@ jooq {
} }
} }
tasks.withType<FlywayMigrateTask>().configureEach { // Declare Flyway migration scripts as inputs
inputs.files(
fileTree("src/main/resources/db/migration"),
fileTree("src/main/java/${mainPackage}/db/flyway/migration")
).withPropertyName("flyway-migration-files").withPathSensitivity(PathSensitivity.RELATIVE)
outputs.files(
fileTree("${project.layout.buildDirectory.get()}/generated/flyway"),
).withPropertyName("flyway-files")
}
tasks.withType<CodegenTask>().configureEach {
dependsOn.add(tasks.flywayMigrate) // Ensure database schema has been prepared by Flyway before generating the jOOQ sources
// Declare Flyway migration scripts as inputs on the jOOQ task
inputs.files(
fileTree("src/main/resources/db/migration"),
fileTree("src/main/java/${mainPackage}/db/flyway/migration")
).withPropertyName("flyway-migration-files").withPathSensitivity(PathSensitivity.RELATIVE)
// Declare outputs
val dir = layout.buildDirectory.dir("generated-src/jooq").get()
outputs.dir(dir).withPropertyName("jooq-generated-sources")
sourceSets {
get("main").java.srcDir(dir)
}
// Enable build caching
outputs.cacheIf { true }
}
// Apply custom version arg // Apply custom version arg
val versionArg = if (hasProperty("customVersion")) val versionArg = if (hasProperty("customVersion"))
(properties["customVersion"] as String).uppercase() // Uppercase version string (properties["customVersion"] as String).uppercase() // Uppercase version string
@@ -1,13 +1,13 @@
package com.github.alathra.AlathranWars; package com.github.alathra.alathranwars;
import com.github.alathra.AlathranWars.commands.CommandManager; import com.github.alathra.alathranwars.commands.CommandManager;
import com.github.alathra.AlathranWars.config.ConfigHandler; import com.github.alathra.alathranwars.config.ConfigHandler;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.db.DatabaseHandler; import com.github.alathra.alathranwars.db.DatabaseHandler;
import com.github.alathra.AlathranWars.db.DatabaseQueries; import com.github.alathra.alathranwars.db.DatabaseQueries;
import com.github.alathra.AlathranWars.hooks.HookManager; import com.github.alathra.alathranwars.hooks.HookManager;
import com.github.alathra.AlathranWars.items.WarItemRegistry; import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.alathra.AlathranWars.listeners.ListenerHandler; import com.github.alathra.alathranwars.listeners.ListenerHandler;
import net.milkbowl.vault.economy.Economy; import net.milkbowl.vault.economy.Economy;
import org.bukkit.plugin.RegisteredServiceProvider; import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars; package com.github.alathra.alathranwars;
/** /**
* Implemented in classes that should support being reloaded IE executing the methods during runtime after startup. * Implemented in classes that should support being reloaded IE executing the methods during runtime after startup.
@@ -1,9 +1,9 @@
package com.github.alathra.AlathranWars.commands; package com.github.alathra.alathranwars.commands;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.hooks.NameColorHandler; import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.github.alathra.AlathranWars.items.WarItemRegistry; import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import dev.jorel.commandapi.CommandAPIBukkit; import dev.jorel.commandapi.CommandAPIBukkit;
import dev.jorel.commandapi.CommandAPICommand; import dev.jorel.commandapi.CommandAPICommand;
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.commands; package com.github.alathra.alathranwars.commands;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import dev.jorel.commandapi.CommandAPI; import dev.jorel.commandapi.CommandAPI;
import dev.jorel.commandapi.CommandAPIBukkitConfig; import dev.jorel.commandapi.CommandAPIBukkitConfig;
@@ -1,15 +1,15 @@
package com.github.alathra.AlathranWars.commands; package com.github.alathra.alathranwars.commands;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.enums.CommandArgsSiege; import com.github.alathra.alathranwars.enums.CommandArgsSiege;
import com.github.alathra.AlathranWars.enums.CommandArgsWar; import com.github.alathra.alathranwars.enums.CommandArgsWar;
import com.github.alathra.AlathranWars.hooks.TownyHook; import com.github.alathra.alathranwars.hooks.TownyHook;
import com.github.alathra.AlathranWars.items.WarItemRegistry; import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.TownyAPI; import com.palmergames.bukkit.towny.TownyAPI;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
@@ -1,12 +1,12 @@
package com.github.alathra.AlathranWars.commands; package com.github.alathra.alathranwars.commands;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason; import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.TownyAPI; import com.palmergames.bukkit.towny.TownyAPI;
import com.palmergames.bukkit.towny.object.Resident; import com.palmergames.bukkit.towny.object.Resident;
@@ -27,10 +27,10 @@ import java.time.Duration;
import java.time.Instant; import java.time.Instant;
import java.util.Set; import java.util.Set;
import static com.github.alathra.AlathranWars.enums.CommandArgsSiege.ALL_SIEGES; import static com.github.alathra.alathranwars.enums.CommandArgsSiege.ALL_SIEGES;
import static com.github.alathra.AlathranWars.enums.CommandArgsSiege.IN_SIEGE; import static com.github.alathra.alathranwars.enums.CommandArgsSiege.IN_SIEGE;
import static com.github.alathra.AlathranWars.enums.CommandArgsWar.ALL_WARS; import static com.github.alathra.alathranwars.enums.CommandArgsWar.ALL_WARS;
import static com.github.alathra.AlathranWars.enums.CommandArgsWar.IN_WAR; import static com.github.alathra.alathranwars.enums.CommandArgsWar.IN_WAR;
public class SiegeCommands { public class SiegeCommands {
public SiegeCommands() { public SiegeCommands() {
@@ -1,12 +1,12 @@
package com.github.alathra.AlathranWars.commands; package com.github.alathra.alathranwars.commands;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarBuilder; import com.github.alathra.alathranwars.conflict.war.WarBuilder;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.conflict.war.side.SideCreationException; import com.github.alathra.alathranwars.conflict.war.side.SideCreationException;
import com.github.alathra.AlathranWars.hooks.NameColorHandler; import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.TownyAPI; import com.palmergames.bukkit.towny.TownyAPI;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
@@ -36,7 +36,7 @@ import java.util.Objects;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
import static com.github.alathra.AlathranWars.enums.CommandArgsWar.*; import static com.github.alathra.alathranwars.enums.CommandArgsWar.*;
public class WarCommands { public class WarCommands {
public WarCommands() { public WarCommands() {
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.config; package com.github.alathra.alathranwars.config;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.Reloadable; import com.github.alathra.alathranwars.Reloadable;
import com.github.milkdrinkers.Crate.Config; import com.github.milkdrinkers.Crate.Config;
import javax.inject.Singleton; import javax.inject.Singleton;
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.conflict; package com.github.alathra.alathranwars.conflict;
import com.github.alathra.AlathranWars.enums.ConflictType; import com.github.alathra.alathranwars.enums.ConflictType;
public class Conflict { public class Conflict {
private ConflictType conflictType; private ConflictType conflictType;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.conflict; package com.github.alathra.alathranwars.conflict;
import com.palmergames.bukkit.towny.exceptions.AlreadyRegisteredException; import com.palmergames.bukkit.towny.exceptions.AlreadyRegisteredException;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.conflict.battle; package com.github.alathra.alathranwars.conflict.battle;
import com.github.alathra.AlathranWars.enums.battle.BattleType; import com.github.alathra.alathranwars.enums.battle.BattleType;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason; import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import java.util.UUID; import java.util.UUID;
@@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
package com.github.alathra.AlathranWars.conflict.battle.beam; package com.github.alathra.alathranwars.conflict.battle.beam;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@@ -22,10 +22,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
package com.github.alathra.AlathranWars.conflict.battle.beam; package com.github.alathra.alathranwars.conflict.battle.beam;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.utility.Logger; import com.github.alathra.alathranwars.utility.Logger;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
package com.github.alathra.AlathranWars.conflict.battle.beam; package com.github.alathra.alathranwars.conflict.battle.beam;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
@@ -22,9 +22,9 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
package com.github.alathra.AlathranWars.conflict.battle.beam; package com.github.alathra.alathranwars.conflict.battle.beam;
import com.github.alathra.AlathranWars.utility.Logger; import com.github.alathra.alathranwars.utility.Logger;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.animal.Squid; import net.minecraft.world.entity.animal.Squid;
@@ -1,13 +1,13 @@
package com.github.alathra.AlathranWars.conflict.battle.raid; package com.github.alathra.alathranwars.conflict.battle.raid;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.conflict.battle.Battle; import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.enums.CaptureProgressDirection; import com.github.alathra.alathranwars.enums.CaptureProgressDirection;
import com.github.alathra.AlathranWars.enums.battle.*; import com.github.alathra.alathranwars.enums.battle.*;
import com.github.alathra.AlathranWars.events.battle.BattleResultEvent; import com.github.alathra.alathranwars.events.battle.BattleResultEvent;
import com.github.alathra.AlathranWars.events.battle.PreBattleResultEvent; import com.github.alathra.alathranwars.events.battle.PreBattleResultEvent;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.TownBlock; import com.palmergames.bukkit.towny.object.TownBlock;
@@ -1,12 +1,12 @@
package com.github.alathra.AlathranWars.conflict.battle.raid; package com.github.alathra.alathranwars.conflict.battle.raid;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.conflict.battle.beam.CrystalLaser; import com.github.alathra.alathranwars.conflict.battle.beam.CrystalLaser;
import com.github.alathra.AlathranWars.conflict.battle.beam.Laser; import com.github.alathra.alathranwars.conflict.battle.beam.Laser;
import com.github.alathra.AlathranWars.enums.CaptureProgressDirection; import com.github.alathra.alathranwars.enums.CaptureProgressDirection;
import com.github.alathra.AlathranWars.enums.battle.BattleSide; import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason; import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.TownBlock; import com.palmergames.bukkit.towny.object.TownBlock;
@@ -19,8 +19,8 @@ import space.arim.morepaperlib.scheduling.ScheduledTask;
import java.time.Duration; import java.time.Duration;
import java.time.Instant; import java.time.Instant;
import static com.github.alathra.AlathranWars.conflict.battle.raid.Raid.*; import static com.github.alathra.alathranwars.conflict.battle.raid.Raid.*;
import static com.github.alathra.AlathranWars.enums.CaptureProgressDirection.*; import static com.github.alathra.alathranwars.enums.CaptureProgressDirection.*;
public class RaidRunnable implements Runnable { public class RaidRunnable implements Runnable {
// Settings // Settings
@@ -1,16 +1,16 @@
package com.github.alathra.AlathranWars.conflict.battle.siege; package com.github.alathra.alathranwars.conflict.battle.siege;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.conflict.battle.Battle; import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.db.DatabaseQueries; import com.github.alathra.alathranwars.db.DatabaseQueries;
import com.github.alathra.AlathranWars.enums.CaptureProgressDirection; import com.github.alathra.alathranwars.enums.CaptureProgressDirection;
import com.github.alathra.AlathranWars.enums.battle.*; import com.github.alathra.alathranwars.enums.battle.*;
import com.github.alathra.AlathranWars.events.battle.BattleResultEvent; import com.github.alathra.alathranwars.events.battle.BattleResultEvent;
import com.github.alathra.AlathranWars.events.battle.BattleStartEvent; import com.github.alathra.alathranwars.events.battle.BattleStartEvent;
import com.github.alathra.AlathranWars.events.battle.PreBattleResultEvent; import com.github.alathra.alathranwars.events.battle.PreBattleResultEvent;
import com.github.alathra.AlathranWars.events.battle.PreBattleStartEvent; import com.github.alathra.alathranwars.events.battle.PreBattleStartEvent;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.TownBlock; import com.palmergames.bukkit.towny.object.TownBlock;
@@ -1,12 +1,12 @@
package com.github.alathra.AlathranWars.conflict.battle.siege; package com.github.alathra.alathranwars.conflict.battle.siege;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.conflict.battle.beam.CrystalLaser; import com.github.alathra.alathranwars.conflict.battle.beam.CrystalLaser;
import com.github.alathra.AlathranWars.conflict.battle.beam.Laser; import com.github.alathra.alathranwars.conflict.battle.beam.Laser;
import com.github.alathra.AlathranWars.enums.CaptureProgressDirection; import com.github.alathra.alathranwars.enums.CaptureProgressDirection;
import com.github.alathra.AlathranWars.enums.battle.BattleSide; import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason; import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.TownBlock; import com.palmergames.bukkit.towny.object.TownBlock;
@@ -19,8 +19,8 @@ import space.arim.morepaperlib.scheduling.ScheduledTask;
import java.time.Duration; import java.time.Duration;
import java.time.Instant; import java.time.Instant;
import static com.github.alathra.AlathranWars.conflict.battle.siege.Siege.*; import static com.github.alathra.alathranwars.conflict.battle.siege.Siege.*;
import static com.github.alathra.AlathranWars.enums.CaptureProgressDirection.*; import static com.github.alathra.alathranwars.enums.CaptureProgressDirection.*;
public class SiegeRunnable implements Runnable { public class SiegeRunnable implements Runnable {
// Settings // Settings
@@ -1,24 +1,24 @@
package com.github.alathra.AlathranWars.conflict.war; package com.github.alathra.alathranwars.conflict.war;
import com.github.alathra.AlathranWars.conflict.Conflict; import com.github.alathra.alathranwars.conflict.Conflict;
import com.github.alathra.AlathranWars.conflict.Occupation; import com.github.alathra.alathranwars.conflict.Occupation;
import com.github.alathra.AlathranWars.conflict.battle.raid.Raid; import com.github.alathra.alathranwars.conflict.battle.raid.Raid;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.conflict.war.side.SideBuilder; import com.github.alathra.alathranwars.conflict.war.side.SideBuilder;
import com.github.alathra.AlathranWars.conflict.war.side.SideCreationException; import com.github.alathra.alathranwars.conflict.war.side.SideCreationException;
import com.github.alathra.AlathranWars.db.DatabaseQueries; import com.github.alathra.alathranwars.db.DatabaseQueries;
import com.github.alathra.AlathranWars.enums.ConflictType; import com.github.alathra.alathranwars.enums.ConflictType;
import com.github.alathra.AlathranWars.enums.WarDeleteReason; import com.github.alathra.alathranwars.enums.WarDeleteReason;
import com.github.alathra.AlathranWars.enums.battle.BattleSide; import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleTeam; import com.github.alathra.alathranwars.enums.battle.BattleTeam;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason; import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.events.PreWarCreateEvent; import com.github.alathra.alathranwars.events.PreWarCreateEvent;
import com.github.alathra.AlathranWars.events.PreWarDeleteEvent; import com.github.alathra.alathranwars.events.PreWarDeleteEvent;
import com.github.alathra.AlathranWars.events.WarCreateEvent; import com.github.alathra.alathranwars.events.WarCreateEvent;
import com.github.alathra.AlathranWars.events.WarDeleteEvent; import com.github.alathra.alathranwars.events.WarDeleteEvent;
import com.github.alathra.AlathranWars.hooks.NameColorHandler; import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Government; import com.palmergames.bukkit.towny.object.Government;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
@@ -1,10 +1,10 @@
package com.github.alathra.AlathranWars.conflict.war; package com.github.alathra.alathranwars.conflict.war;
import com.github.alathra.AlathranWars.conflict.battle.raid.Raid; import com.github.alathra.alathranwars.conflict.battle.raid.Raid;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.conflict.war.side.SideCreationException; import com.github.alathra.alathranwars.conflict.war.side.SideCreationException;
import com.github.alathra.AlathranWars.enums.ConflictType; import com.github.alathra.alathranwars.enums.ConflictType;
import com.palmergames.bukkit.towny.object.Government; import com.palmergames.bukkit.towny.object.Government;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
@@ -1,9 +1,9 @@
package com.github.alathra.AlathranWars.conflict.war; package com.github.alathra.alathranwars.conflict.war;
import com.github.alathra.AlathranWars.conflict.battle.raid.Raid; import com.github.alathra.alathranwars.conflict.battle.raid.Raid;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.db.DatabaseQueries; import com.github.alathra.alathranwars.db.DatabaseQueries;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.conflict.war; package com.github.alathra.alathranwars.conflict.war;
import com.github.alathra.AlathranWars.conflict.war.side.SideCreationException; import com.github.alathra.alathranwars.conflict.war.side.SideCreationException;
public class WarCreationException extends SideCreationException { public class WarCreationException extends SideCreationException {
public WarCreationException(String errorMessage) { public WarCreationException(String errorMessage) {
@@ -1,11 +1,11 @@
package com.github.alathra.AlathranWars.conflict.war.side; package com.github.alathra.alathranwars.conflict.war.side;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.enums.battle.BattleSide; import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleTeam; import com.github.alathra.alathranwars.enums.battle.BattleTeam;
import com.github.alathra.AlathranWars.hooks.NameColorHandler; import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.palmergames.bukkit.towny.object.Government; import com.palmergames.bukkit.towny.object.Government;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
import com.palmergames.bukkit.towny.object.Resident; import com.palmergames.bukkit.towny.object.Resident;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.conflict.war.side; package com.github.alathra.alathranwars.conflict.war.side;
import com.github.alathra.AlathranWars.enums.battle.BattleSide; import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleTeam; import com.github.alathra.alathranwars.enums.battle.BattleTeam;
import com.palmergames.bukkit.towny.object.Government; import com.palmergames.bukkit.towny.object.Government;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.conflict.war.side; package com.github.alathra.alathranwars.conflict.war.side;
public class SideCreationException extends Exception { public class SideCreationException extends Exception {
public SideCreationException(String errorMessage) { public SideCreationException(String errorMessage) {
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.data; package com.github.alathra.alathranwars.data;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.data; package com.github.alathra.alathranwars.data;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.metadata.LocationDataField; import com.palmergames.bukkit.towny.object.metadata.LocationDataField;
import com.palmergames.bukkit.towny.utils.MetaDataUtil; import com.palmergames.bukkit.towny.utils.MetaDataUtil;
@@ -1,12 +1,12 @@
package com.github.alathra.AlathranWars.db; package com.github.alathra.alathranwars.db;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.Reloadable; import com.github.alathra.alathranwars.Reloadable;
import com.github.alathra.AlathranWars.db.flyway.DatabaseMigrationException; import com.github.alathra.alathranwars.db.flyway.DatabaseMigrationException;
import com.github.alathra.AlathranWars.db.flyway.DatabaseMigrationHandler; import com.github.alathra.alathranwars.db.flyway.DatabaseMigrationHandler;
import com.github.alathra.AlathranWars.db.jooq.JooqContext; import com.github.alathra.alathranwars.db.jooq.JooqContext;
import com.github.alathra.AlathranWars.utility.Cfg; import com.github.alathra.alathranwars.utility.Cfg;
import com.github.alathra.AlathranWars.utility.Logger; import com.github.alathra.alathranwars.utility.Logger;
import com.zaxxer.hikari.HikariConfig; import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource; import com.zaxxer.hikari.HikariDataSource;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,16 +1,16 @@
package com.github.alathra.AlathranWars.db; package com.github.alathra.alathranwars.db;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarBuilder; import com.github.alathra.alathranwars.conflict.war.WarBuilder;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.conflict.war.side.SideBuilder; import com.github.alathra.alathranwars.conflict.war.side.SideBuilder;
import com.github.alathra.AlathranWars.conflict.war.side.SideCreationException; import com.github.alathra.alathranwars.conflict.war.side.SideCreationException;
import com.github.alathra.AlathranWars.enums.battle.BattleSide; import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleTeam; import com.github.alathra.alathranwars.enums.battle.BattleTeam;
import com.github.alathra.AlathranWars.utility.DB; import com.github.alathra.alathranwars.utility.DB;
import com.github.alathra.AlathranWars.utility.Logger; import com.github.alathra.alathranwars.utility.Logger;
import com.palmergames.bukkit.towny.TownyAPI; import com.palmergames.bukkit.towny.TownyAPI;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
@@ -35,7 +35,7 @@ import java.util.HashSet;
import java.util.Set; import java.util.Set;
import java.util.UUID; import java.util.UUID;
import static com.github.alathra.AlathranWars.db.schema.Tables.*; import static com.github.alathra.alathranwars.db.schema.Tables.*;
/** /**
* A holder class for all SQL queries * A holder class for all SQL queries
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.db; package com.github.alathra.alathranwars.db;
import com.mysql.cj.jdbc.MysqlDataSource; import com.mysql.cj.jdbc.MysqlDataSource;
import org.h2.jdbcx.JdbcDataSource; import org.h2.jdbcx.JdbcDataSource;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.db.flyway; package com.github.alathra.alathranwars.db.flyway;
public class DatabaseMigrationException extends Exception { public class DatabaseMigrationException extends Exception {
public DatabaseMigrationException(Throwable t) { public DatabaseMigrationException(Throwable t) {
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.db.flyway; package com.github.alathra.alathranwars.db.flyway;
import com.github.alathra.AlathranWars.db.DatabaseType; import com.github.alathra.alathranwars.db.DatabaseType;
import com.github.milkdrinkers.Crate.Config; import com.github.milkdrinkers.Crate.Config;
import org.flywaydb.core.Flyway; import org.flywaydb.core.Flyway;
import org.flywaydb.core.api.ClassProvider; import org.flywaydb.core.api.ClassProvider;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.db.flyway; package com.github.alathra.alathranwars.db.flyway;
import org.flywaydb.core.api.ClassProvider; import org.flywaydb.core.api.ClassProvider;
import org.flywaydb.core.api.migration.JavaMigration; import org.flywaydb.core.api.migration.JavaMigration;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.db.flyway.migration; package com.github.alathra.alathranwars.db.flyway.migration;
import org.flywaydb.core.api.migration.BaseJavaMigration; import org.flywaydb.core.api.migration.BaseJavaMigration;
import org.flywaydb.core.api.migration.Context; import org.flywaydb.core.api.migration.Context;
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.db.jooq; package com.github.alathra.alathranwars.db.jooq;
import com.github.alathra.AlathranWars.utility.Cfg; import com.github.alathra.alathranwars.utility.Cfg;
import org.jooq.*; import org.jooq.*;
import org.jooq.conf.*; import org.jooq.conf.*;
import org.jooq.exception.DataAccessException; import org.jooq.exception.DataAccessException;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums; package com.github.alathra.alathranwars.enums;
public enum CaptureProgressDirection { public enum CaptureProgressDirection {
UP, UP,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums; package com.github.alathra.alathranwars.enums;
public enum CommandArgsSiege { public enum CommandArgsSiege {
IN_SIEGE, IN_SIEGE,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums; package com.github.alathra.alathranwars.enums;
public enum CommandArgsWar { public enum CommandArgsWar {
IN_WAR, IN_WAR,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums; package com.github.alathra.alathranwars.enums;
public enum ConflictType { public enum ConflictType {
WAR WAR
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums; package com.github.alathra.alathranwars.enums;
public enum WarDeleteReason { public enum WarDeleteReason {
DRAW, DRAW,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle; package com.github.alathra.alathranwars.enums.battle;
public enum BattleSide { public enum BattleSide {
ATTACKER, ATTACKER,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle; package com.github.alathra.alathranwars.enums.battle;
public enum BattleTeam { public enum BattleTeam {
SIDE_1, SIDE_1,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle; package com.github.alathra.alathranwars.enums.battle;
public enum BattleType { public enum BattleType {
SIEGE, SIEGE,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle; package com.github.alathra.alathranwars.enums.battle;
public enum BattleVictor { public enum BattleVictor {
ATTACKER, ATTACKER,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle; package com.github.alathra.alathranwars.enums.battle;
public enum BattleVictoryReason { public enum BattleVictoryReason {
OPPONENT_LOST, OPPONENT_LOST,
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.events; package com.github.alathra.alathranwars.events;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.events; package com.github.alathra.alathranwars.events;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.enums.WarDeleteReason; import com.github.alathra.alathranwars.enums.WarDeleteReason;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.events; package com.github.alathra.alathranwars.events;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.events; package com.github.alathra.alathranwars.events;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.enums.WarDeleteReason; import com.github.alathra.alathranwars.enums.WarDeleteReason;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,9 +1,9 @@
package com.github.alathra.AlathranWars.events.battle; package com.github.alathra.alathranwars.events.battle;
import com.github.alathra.AlathranWars.conflict.battle.Battle; import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.enums.battle.BattleVictor; import com.github.alathra.alathranwars.enums.battle.BattleVictor;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason; import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.events.battle; package com.github.alathra.alathranwars.events.battle;
import com.github.alathra.AlathranWars.conflict.battle.Battle; import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,10 +1,10 @@
package com.github.alathra.AlathranWars.events.battle; package com.github.alathra.alathranwars.events.battle;
import com.github.alathra.AlathranWars.conflict.battle.Battle; import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.enums.battle.BattleType; import com.github.alathra.alathranwars.enums.battle.BattleType;
import com.github.alathra.AlathranWars.enums.battle.BattleVictor; import com.github.alathra.alathranwars.enums.battle.BattleVictor;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason; import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
@@ -1,8 +1,8 @@
package com.github.alathra.AlathranWars.events.battle; package com.github.alathra.alathranwars.events.battle;
import com.github.alathra.AlathranWars.conflict.battle.Battle; import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.enums.battle.BattleType; import com.github.alathra.alathranwars.enums.battle.BattleType;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.hooks; package com.github.alathra.alathranwars.hooks;
import com.github.alathra.AlathranWars.Reloadable; import com.github.alathra.alathranwars.Reloadable;
public class HookManager implements Reloadable { public class HookManager implements Reloadable {
private final PAPIHook papi = new PAPIHook(); private final PAPIHook papi = new PAPIHook();
@@ -1,8 +1,8 @@
package com.github.alathra.AlathranWars.hooks; package com.github.alathra.alathranwars.hooks;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.utility.Logger; import com.github.alathra.alathranwars.utility.Logger;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.hooks; package com.github.alathra.alathranwars.hooks;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import me.clip.placeholderapi.expansion.PlaceholderExpansion; import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.hooks; package com.github.alathra.alathranwars.hooks;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.Reloadable; import com.github.alathra.alathranwars.Reloadable;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
public class PAPIHook implements Reloadable { public class PAPIHook implements Reloadable {
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.hooks; package com.github.alathra.alathranwars.hooks;
import com.palmergames.bukkit.towny.TownyAPI; import com.palmergames.bukkit.towny.TownyAPI;
import com.palmergames.bukkit.towny.object.Nation; import com.palmergames.bukkit.towny.object.Nation;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.items; package com.github.alathra.alathranwars.items;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.Recipe; import org.bukkit.inventory.Recipe;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.items; package com.github.alathra.alathranwars.items;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.items.item.RamItem; import com.github.alathra.alathranwars.items.item.RamItem;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.items; package com.github.alathra.alathranwars.items;
import org.bukkit.inventory.Recipe; import org.bukkit.inventory.Recipe;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,8 +1,8 @@
package com.github.alathra.AlathranWars.items.item; package com.github.alathra.alathranwars.items.item;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.items.IWarItem; import com.github.alathra.alathranwars.items.IWarItem;
import com.github.alathra.AlathranWars.items.WarItemRegistry; import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
import org.bukkit.Material; import org.bukkit.Material;
@@ -1,9 +1,9 @@
package com.github.alathra.AlathranWars.listeners; package com.github.alathra.alathranwars.listeners;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.utility.Utils; import com.github.alathra.alathranwars.utility.Utils;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
@@ -1,12 +1,12 @@
package com.github.alathra.AlathranWars.listeners; package com.github.alathra.alathranwars.listeners;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.Reloadable; import com.github.alathra.alathranwars.Reloadable;
import com.github.alathra.AlathranWars.listeners.items.PlayerInteractListener; import com.github.alathra.alathranwars.listeners.items.PlayerInteractListener;
import com.github.alathra.AlathranWars.listeners.siege.*; import com.github.alathra.alathranwars.listeners.siege.*;
import com.github.alathra.AlathranWars.listeners.war.NationListener; import com.github.alathra.alathranwars.listeners.war.NationListener;
import com.github.alathra.AlathranWars.listeners.war.PlayerJoinListener; import com.github.alathra.alathranwars.listeners.war.PlayerJoinListener;
import com.github.alathra.AlathranWars.listeners.war.TownListener; import com.github.alathra.alathranwars.listeners.war.TownListener;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
/** /**
@@ -26,7 +26,7 @@ public class ListenerHandler implements Reloadable {
@Override @Override
public void onEnable() { public void onEnable() {
// Sieges // Sieges
instance.getServer().getPluginManager().registerEvents(new com.github.alathra.AlathranWars.listeners.siege.PlayerJoinListener(), instance); instance.getServer().getPluginManager().registerEvents(new com.github.alathra.alathranwars.listeners.siege.PlayerJoinListener(), instance);
instance.getServer().getPluginManager().registerEvents(new PlayerQuitListener(), instance); instance.getServer().getPluginManager().registerEvents(new PlayerQuitListener(), instance);
instance.getServer().getPluginManager().registerEvents(new BlockBreakPlaceListener(), instance); instance.getServer().getPluginManager().registerEvents(new BlockBreakPlaceListener(), instance);
instance.getServer().getPluginManager().registerEvents(new PlayerDeathListener(), instance); instance.getServer().getPluginManager().registerEvents(new PlayerDeathListener(), instance);
@@ -46,7 +46,7 @@ public class ListenerHandler implements Reloadable {
instance.getServer().getPluginManager().registerEvents(new NationListener(), instance); instance.getServer().getPluginManager().registerEvents(new NationListener(), instance);
instance.getServer().getPluginManager().registerEvents(new TownListener(), instance); instance.getServer().getPluginManager().registerEvents(new TownListener(), instance);
instance.getServer().getPluginManager().registerEvents(new PlayerJoinListener(), instance); instance.getServer().getPluginManager().registerEvents(new PlayerJoinListener(), instance);
instance.getServer().getPluginManager().registerEvents(new com.github.alathra.AlathranWars.listeners.war.PlayerQuitListener(), instance); instance.getServer().getPluginManager().registerEvents(new com.github.alathra.alathranwars.listeners.war.PlayerQuitListener(), instance);
instance.getServer().getPluginManager().registerEvents(new CommandsListener(), instance); instance.getServer().getPluginManager().registerEvents(new CommandsListener(), instance);
instance.getServer().getPluginManager().registerEvents(new PlayerInteractListener(), instance); instance.getServer().getPluginManager().registerEvents(new PlayerInteractListener(), instance);
@@ -1,10 +1,10 @@
package com.github.alathra.AlathranWars.listeners.items; package com.github.alathra.alathranwars.listeners.items;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.items.WarItemRegistry; import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.TownBlock; import com.palmergames.bukkit.towny.object.TownBlock;
import com.palmergames.bukkit.towny.object.WorldCoord; import com.palmergames.bukkit.towny.object.WorldCoord;
@@ -1,8 +1,8 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.enums.battle.BattleSide; import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.utility.Utils; import com.github.alathra.alathranwars.utility.Utils;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.event.actions.TownyBuildEvent; import com.palmergames.bukkit.towny.event.actions.TownyBuildEvent;
import com.palmergames.bukkit.towny.event.actions.TownyDestroyEvent; import com.palmergames.bukkit.towny.event.actions.TownyDestroyEvent;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.utility.Utils; import com.github.alathra.alathranwars.utility.Utils;
import com.palmergames.bukkit.towny.event.actions.TownyItemuseEvent; import com.palmergames.bukkit.towny.event.actions.TownyItemuseEvent;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.utility.Utils; import com.github.alathra.alathranwars.utility.Utils;
import com.palmergames.bukkit.towny.event.damage.TownyPlayerDamageEntityEvent; import com.palmergames.bukkit.towny.event.damage.TownyPlayerDamageEntityEvent;
import org.bukkit.entity.EntityType; import org.bukkit.entity.EntityType;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.utility.Utils; import com.github.alathra.alathranwars.utility.Utils;
import com.palmergames.bukkit.towny.event.deathprice.NationPaysDeathPriceEvent; import com.palmergames.bukkit.towny.event.deathprice.NationPaysDeathPriceEvent;
import com.palmergames.bukkit.towny.event.deathprice.PlayerPaysDeathPriceEvent; import com.palmergames.bukkit.towny.event.deathprice.PlayerPaysDeathPriceEvent;
import com.palmergames.bukkit.towny.event.deathprice.TownPaysDeathPriceEvent; import com.palmergames.bukkit.towny.event.deathprice.TownPaysDeathPriceEvent;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.utility.Utils; import com.github.alathra.alathranwars.utility.Utils;
import com.ranull.graves.event.GraveCreateEvent; import com.ranull.graves.event.GraveCreateEvent;
import org.bukkit.entity.EntityType; import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.utility.Utils; import com.github.alathra.alathranwars.utility.Utils;
import io.github.thatsmusic99.headsplus.api.events.PlayerHeadDropEvent; import io.github.thatsmusic99.headsplus.api.events.PlayerHeadDropEvent;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
@@ -1,8 +1,8 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.enums.battle.BattleSide; import com.github.alathra.alathranwars.enums.battle.BattleSide;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
@@ -1,8 +1,8 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.enums.battle.BattleSide; import com.github.alathra.alathranwars.enums.battle.BattleSide;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.utility.Utils; import com.github.alathra.alathranwars.utility.Utils;
import dev.geco.gsit.api.event.PreEntitySitEvent; import dev.geco.gsit.api.event.PreEntitySitEvent;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
@@ -1,13 +1,13 @@
package com.github.alathra.AlathranWars.listeners.siege; package com.github.alathra.alathranwars.listeners.siege;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.enums.battle.BattleType; import com.github.alathra.alathranwars.enums.battle.BattleType;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason; import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.events.battle.BattleResultEvent; import com.github.alathra.alathranwars.events.battle.BattleResultEvent;
import com.github.alathra.AlathranWars.events.battle.BattleStartEvent; import com.github.alathra.alathranwars.events.battle.BattleStartEvent;
import com.github.alathra.AlathranWars.utility.UtilsChat; import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.Town;
import net.kyori.adventure.key.Key; import net.kyori.adventure.key.Key;
@@ -1,9 +1,9 @@
package com.github.alathra.AlathranWars.listeners.war; package com.github.alathra.alathranwars.listeners.war;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.hooks.NameColorHandler; import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.palmergames.bukkit.towny.event.NationAddTownEvent; import com.palmergames.bukkit.towny.event.NationAddTownEvent;
import com.palmergames.bukkit.towny.event.NationPreRenameEvent; import com.palmergames.bukkit.towny.event.NationPreRenameEvent;
import com.palmergames.bukkit.towny.event.nation.NationPreMergeEvent; import com.palmergames.bukkit.towny.event.nation.NationPreMergeEvent;
@@ -1,9 +1,9 @@
package com.github.alathra.AlathranWars.listeners.war; package com.github.alathra.alathranwars.listeners.war;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.hooks.NameColorHandler; import com.github.alathra.alathranwars.hooks.NameColorHandler;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
@@ -1,9 +1,9 @@
package com.github.alathra.AlathranWars.listeners.war; package com.github.alathra.alathranwars.listeners.war;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.hooks.NameColorHandler; import com.github.alathra.alathranwars.hooks.NameColorHandler;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
@@ -1,9 +1,9 @@
package com.github.alathra.AlathranWars.listeners.war; package com.github.alathra.alathranwars.listeners.war;
import com.github.alathra.AlathranWars.conflict.war.War; import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side; import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.hooks.NameColorHandler; import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.github.milkdrinkers.colorparser.ColorParser; import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.event.TownAddResidentEvent; import com.palmergames.bukkit.towny.event.TownAddResidentEvent;
import com.palmergames.bukkit.towny.event.TownPreRenameEvent; import com.palmergames.bukkit.towny.event.TownPreRenameEvent;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.utility; package com.github.alathra.alathranwars.utility;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.config.ConfigHandler; import com.github.alathra.alathranwars.config.ConfigHandler;
import com.github.milkdrinkers.Crate.Config; import com.github.milkdrinkers.Crate.Config;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,9 +1,9 @@
package com.github.alathra.AlathranWars.utility; package com.github.alathra.alathranwars.utility;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.AlathranWars.db.DatabaseHandler; import com.github.alathra.alathranwars.db.DatabaseHandler;
import com.github.alathra.AlathranWars.db.DatabaseType; import com.github.alathra.alathranwars.db.DatabaseType;
import com.github.alathra.AlathranWars.db.jooq.JooqContext; import com.github.alathra.alathranwars.db.jooq.JooqContext;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jooq.DSLContext; import org.jooq.DSLContext;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.utility; package com.github.alathra.alathranwars.utility;
import com.github.alathra.AlathranWars.AlathranWars; import com.github.alathra.alathranwars.AlathranWars;
import net.kyori.adventure.text.logger.slf4j.ComponentLogger; import net.kyori.adventure.text.logger.slf4j.ComponentLogger;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
@@ -1,6 +1,6 @@
package com.github.alathra.AlathranWars.utility; package com.github.alathra.alathranwars.utility;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
@@ -1,7 +1,7 @@
package com.github.alathra.AlathranWars.utility; package com.github.alathra.alathranwars.utility;
import com.github.alathra.AlathranWars.conflict.battle.siege.Siege; import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.WarController; import com.github.alathra.alathranwars.conflict.war.WarController;
import com.palmergames.bukkit.towny.object.WorldCoord; import com.palmergames.bukkit.towny.object.WorldCoord;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.utility; package com.github.alathra.alathranwars.utility;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;