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

@@ -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.config.ConfigHandler;
import com.github.alathra.AlathranWars.conflict.war.WarController;
import com.github.alathra.AlathranWars.db.DatabaseHandler;
import com.github.alathra.AlathranWars.db.DatabaseQueries;
import com.github.alathra.AlathranWars.hooks.HookManager;
import com.github.alathra.AlathranWars.items.WarItemRegistry;
import com.github.alathra.AlathranWars.listeners.ListenerHandler;
import com.github.alathra.alathranwars.commands.CommandManager;
import com.github.alathra.alathranwars.config.ConfigHandler;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.db.DatabaseHandler;
import com.github.alathra.alathranwars.db.DatabaseQueries;
import com.github.alathra.alathranwars.hooks.HookManager;
import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.alathra.alathranwars.listeners.ListenerHandler;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.plugin.RegisteredServiceProvider;
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.
@@ -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.hooks.NameColorHandler;
import com.github.alathra.AlathranWars.items.WarItemRegistry;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import dev.jorel.commandapi.CommandAPIBukkit;
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.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.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.enums.CommandArgsSiege;
import com.github.alathra.AlathranWars.enums.CommandArgsWar;
import com.github.alathra.AlathranWars.hooks.TownyHook;
import com.github.alathra.AlathranWars.items.WarItemRegistry;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.enums.CommandArgsSiege;
import com.github.alathra.alathranwars.enums.CommandArgsWar;
import com.github.alathra.alathranwars.hooks.TownyHook;
import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.TownyAPI;
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.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.TownyAPI;
import com.palmergames.bukkit.towny.object.Resident;
@@ -27,10 +27,10 @@ import java.time.Duration;
import java.time.Instant;
import java.util.Set;
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.CommandArgsWar.ALL_WARS;
import static com.github.alathra.AlathranWars.enums.CommandArgsWar.IN_WAR;
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.CommandArgsWar.ALL_WARS;
import static com.github.alathra.alathranwars.enums.CommandArgsWar.IN_WAR;
public class 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.WarBuilder;
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.SideCreationException;
import com.github.alathra.AlathranWars.hooks.NameColorHandler;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarBuilder;
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.SideCreationException;
import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.TownyAPI;
import com.palmergames.bukkit.towny.object.Nation;
@@ -36,7 +36,7 @@ import java.util.Objects;
import java.util.Set;
import java.util.UUID;
import static com.github.alathra.AlathranWars.enums.CommandArgsWar.*;
import static com.github.alathra.alathranwars.enums.CommandArgsWar.*;
public class 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.Reloadable;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.Reloadable;
import com.github.milkdrinkers.Crate.Config;
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 {
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.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.BattleVictoryReason;
import com.github.alathra.alathranwars.enums.battle.BattleType;
import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import org.jetbrains.annotations.NotNull;
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.
*/
package com.github.alathra.AlathranWars.conflict.battle.beam;
package com.github.alathra.alathranwars.conflict.battle.beam;
import org.bukkit.Location;
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.
*/
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.utility.Logger;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.utility.Logger;
import com.github.milkdrinkers.colorparser.ColorParser;
import org.bukkit.Location;
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.
*/
package com.github.alathra.AlathranWars.conflict.battle.beam;
package com.github.alathra.alathranwars.conflict.battle.beam;
import org.bukkit.Location;
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.
*/
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 net.minecraft.world.entity.Entity;
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.conflict.battle.Battle;
import com.github.alathra.AlathranWars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.enums.CaptureProgressDirection;
import com.github.alathra.AlathranWars.enums.battle.*;
import com.github.alathra.AlathranWars.events.battle.BattleResultEvent;
import com.github.alathra.AlathranWars.events.battle.PreBattleResultEvent;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.enums.CaptureProgressDirection;
import com.github.alathra.alathranwars.enums.battle.*;
import com.github.alathra.alathranwars.events.battle.BattleResultEvent;
import com.github.alathra.alathranwars.events.battle.PreBattleResultEvent;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town;
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.conflict.battle.beam.CrystalLaser;
import com.github.alathra.AlathranWars.conflict.battle.beam.Laser;
import com.github.alathra.AlathranWars.enums.CaptureProgressDirection;
import com.github.alathra.AlathranWars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.conflict.battle.beam.CrystalLaser;
import com.github.alathra.alathranwars.conflict.battle.beam.Laser;
import com.github.alathra.alathranwars.enums.CaptureProgressDirection;
import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.TownBlock;
@@ -19,8 +19,8 @@ import space.arim.morepaperlib.scheduling.ScheduledTask;
import java.time.Duration;
import java.time.Instant;
import static com.github.alathra.AlathranWars.conflict.battle.raid.Raid.*;
import static com.github.alathra.AlathranWars.enums.CaptureProgressDirection.*;
import static com.github.alathra.alathranwars.conflict.battle.raid.Raid.*;
import static com.github.alathra.alathranwars.enums.CaptureProgressDirection.*;
public class RaidRunnable implements Runnable {
// 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.conflict.battle.Battle;
import com.github.alathra.AlathranWars.conflict.war.War;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.db.DatabaseQueries;
import com.github.alathra.AlathranWars.enums.CaptureProgressDirection;
import com.github.alathra.AlathranWars.enums.battle.*;
import com.github.alathra.AlathranWars.events.battle.BattleResultEvent;
import com.github.alathra.AlathranWars.events.battle.BattleStartEvent;
import com.github.alathra.AlathranWars.events.battle.PreBattleResultEvent;
import com.github.alathra.AlathranWars.events.battle.PreBattleStartEvent;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.db.DatabaseQueries;
import com.github.alathra.alathranwars.enums.CaptureProgressDirection;
import com.github.alathra.alathranwars.enums.battle.*;
import com.github.alathra.alathranwars.events.battle.BattleResultEvent;
import com.github.alathra.alathranwars.events.battle.BattleStartEvent;
import com.github.alathra.alathranwars.events.battle.PreBattleResultEvent;
import com.github.alathra.alathranwars.events.battle.PreBattleStartEvent;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town;
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.conflict.battle.beam.CrystalLaser;
import com.github.alathra.AlathranWars.conflict.battle.beam.Laser;
import com.github.alathra.AlathranWars.enums.CaptureProgressDirection;
import com.github.alathra.AlathranWars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.conflict.battle.beam.CrystalLaser;
import com.github.alathra.alathranwars.conflict.battle.beam.Laser;
import com.github.alathra.alathranwars.enums.CaptureProgressDirection;
import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town;
import com.palmergames.bukkit.towny.object.TownBlock;
@@ -19,8 +19,8 @@ import space.arim.morepaperlib.scheduling.ScheduledTask;
import java.time.Duration;
import java.time.Instant;
import static com.github.alathra.AlathranWars.conflict.battle.siege.Siege.*;
import static com.github.alathra.AlathranWars.enums.CaptureProgressDirection.*;
import static com.github.alathra.alathranwars.conflict.battle.siege.Siege.*;
import static com.github.alathra.alathranwars.enums.CaptureProgressDirection.*;
public class SiegeRunnable implements Runnable {
// 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.Occupation;
import com.github.alathra.AlathranWars.conflict.battle.raid.Raid;
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.SideBuilder;
import com.github.alathra.AlathranWars.conflict.war.side.SideCreationException;
import com.github.alathra.AlathranWars.db.DatabaseQueries;
import com.github.alathra.AlathranWars.enums.ConflictType;
import com.github.alathra.AlathranWars.enums.WarDeleteReason;
import com.github.alathra.AlathranWars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleTeam;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.events.PreWarCreateEvent;
import com.github.alathra.AlathranWars.events.PreWarDeleteEvent;
import com.github.alathra.AlathranWars.events.WarCreateEvent;
import com.github.alathra.AlathranWars.events.WarDeleteEvent;
import com.github.alathra.AlathranWars.hooks.NameColorHandler;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.conflict.Conflict;
import com.github.alathra.alathranwars.conflict.Occupation;
import com.github.alathra.alathranwars.conflict.battle.raid.Raid;
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.SideBuilder;
import com.github.alathra.alathranwars.conflict.war.side.SideCreationException;
import com.github.alathra.alathranwars.db.DatabaseQueries;
import com.github.alathra.alathranwars.enums.ConflictType;
import com.github.alathra.alathranwars.enums.WarDeleteReason;
import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.alathranwars.enums.battle.BattleTeam;
import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.alathranwars.events.PreWarCreateEvent;
import com.github.alathra.alathranwars.events.PreWarDeleteEvent;
import com.github.alathra.alathranwars.events.WarCreateEvent;
import com.github.alathra.alathranwars.events.WarDeleteEvent;
import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Government;
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.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.conflict.war.side.SideCreationException;
import com.github.alathra.AlathranWars.enums.ConflictType;
import com.github.alathra.alathranwars.conflict.battle.raid.Raid;
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.SideCreationException;
import com.github.alathra.alathranwars.enums.ConflictType;
import com.palmergames.bukkit.towny.object.Government;
import com.palmergames.bukkit.towny.object.Nation;
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.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.db.DatabaseQueries;
import com.github.alathra.alathranwars.conflict.battle.raid.Raid;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.db.DatabaseQueries;
import com.palmergames.bukkit.towny.object.Nation;
import com.palmergames.bukkit.towny.object.Town;
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 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.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarController;
import com.github.alathra.AlathranWars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleTeam;
import com.github.alathra.AlathranWars.hooks.NameColorHandler;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.alathranwars.enums.battle.BattleTeam;
import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.palmergames.bukkit.towny.object.Government;
import com.palmergames.bukkit.towny.object.Nation;
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.BattleTeam;
import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.alathranwars.enums.battle.BattleTeam;
import com.palmergames.bukkit.towny.object.Government;
import com.palmergames.bukkit.towny.object.Nation;
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 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.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.metadata.LocationDataField;
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.Reloadable;
import com.github.alathra.AlathranWars.db.flyway.DatabaseMigrationException;
import com.github.alathra.AlathranWars.db.flyway.DatabaseMigrationHandler;
import com.github.alathra.AlathranWars.db.jooq.JooqContext;
import com.github.alathra.AlathranWars.utility.Cfg;
import com.github.alathra.AlathranWars.utility.Logger;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.Reloadable;
import com.github.alathra.alathranwars.db.flyway.DatabaseMigrationException;
import com.github.alathra.alathranwars.db.flyway.DatabaseMigrationHandler;
import com.github.alathra.alathranwars.db.jooq.JooqContext;
import com.github.alathra.alathranwars.utility.Cfg;
import com.github.alathra.alathranwars.utility.Logger;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
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.war.War;
import com.github.alathra.AlathranWars.conflict.war.WarBuilder;
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.SideBuilder;
import com.github.alathra.AlathranWars.conflict.war.side.SideCreationException;
import com.github.alathra.AlathranWars.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.enums.battle.BattleTeam;
import com.github.alathra.AlathranWars.utility.DB;
import com.github.alathra.AlathranWars.utility.Logger;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarBuilder;
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.SideBuilder;
import com.github.alathra.alathranwars.conflict.war.side.SideCreationException;
import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.alathranwars.enums.battle.BattleTeam;
import com.github.alathra.alathranwars.utility.DB;
import com.github.alathra.alathranwars.utility.Logger;
import com.palmergames.bukkit.towny.TownyAPI;
import com.palmergames.bukkit.towny.object.Nation;
import com.palmergames.bukkit.towny.object.Town;
@@ -35,7 +35,7 @@ import java.util.HashSet;
import java.util.Set;
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
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.db;
package com.github.alathra.alathranwars.db;
import com.mysql.cj.jdbc.MysqlDataSource;
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 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 org.flywaydb.core.Flyway;
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.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.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.conf.*;
import org.jooq.exception.DataAccessException;
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums;
package com.github.alathra.alathranwars.enums;
public enum CaptureProgressDirection {
UP,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums;
package com.github.alathra.alathranwars.enums;
public enum CommandArgsSiege {
IN_SIEGE,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums;
package com.github.alathra.alathranwars.enums;
public enum CommandArgsWar {
IN_WAR,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums;
package com.github.alathra.alathranwars.enums;
public enum ConflictType {
WAR
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums;
package com.github.alathra.alathranwars.enums;
public enum WarDeleteReason {
DRAW,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle;
package com.github.alathra.alathranwars.enums.battle;
public enum BattleSide {
ATTACKER,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle;
package com.github.alathra.alathranwars.enums.battle;
public enum BattleTeam {
SIDE_1,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle;
package com.github.alathra.alathranwars.enums.battle;
public enum BattleType {
SIEGE,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle;
package com.github.alathra.alathranwars.enums.battle;
public enum BattleVictor {
ATTACKER,
@@ -1,4 +1,4 @@
package com.github.alathra.AlathranWars.enums.battle;
package com.github.alathra.alathranwars.enums.battle;
public enum BattleVictoryReason {
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.Event;
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.enums.WarDeleteReason;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.enums.WarDeleteReason;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
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.HandlerList;
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.enums.WarDeleteReason;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.enums.WarDeleteReason;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
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.war.War;
import com.github.alathra.AlathranWars.enums.battle.BattleVictor;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason;
import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.enums.battle.BattleVictor;
import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
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.war.War;
import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.alathranwars.conflict.war.War;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
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.war.War;
import com.github.alathra.AlathranWars.enums.battle.BattleType;
import com.github.alathra.AlathranWars.enums.battle.BattleVictor;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason;
import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.enums.battle.BattleType;
import com.github.alathra.alathranwars.enums.battle.BattleVictor;
import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
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.war.War;
import com.github.alathra.AlathranWars.enums.battle.BattleType;
import com.github.alathra.alathranwars.conflict.battle.Battle;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.enums.battle.BattleType;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
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 {
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.WarController;
import com.github.alathra.AlathranWars.utility.Logger;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.utility.Logger;
import org.bukkit.entity.Player;
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 org.bukkit.entity.Player;
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.Reloadable;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.Reloadable;
import org.bukkit.Bukkit;
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.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.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.items.item.RamItem;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.items.item.RamItem;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
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.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.items.IWarItem;
import com.github.alathra.AlathranWars.items.WarItemRegistry;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.items.IWarItem;
import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.milkdrinkers.colorparser.ColorParser;
import net.kyori.adventure.text.Component;
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.war.WarController;
import com.github.alathra.AlathranWars.utility.Utils;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.utility.Utils;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import org.bukkit.entity.Player;
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.Reloadable;
import com.github.alathra.AlathranWars.listeners.items.PlayerInteractListener;
import com.github.alathra.AlathranWars.listeners.siege.*;
import com.github.alathra.AlathranWars.listeners.war.NationListener;
import com.github.alathra.AlathranWars.listeners.war.PlayerJoinListener;
import com.github.alathra.AlathranWars.listeners.war.TownListener;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.Reloadable;
import com.github.alathra.alathranwars.listeners.items.PlayerInteractListener;
import com.github.alathra.alathranwars.listeners.siege.*;
import com.github.alathra.alathranwars.listeners.war.NationListener;
import com.github.alathra.alathranwars.listeners.war.PlayerJoinListener;
import com.github.alathra.alathranwars.listeners.war.TownListener;
import org.bukkit.Bukkit;
/**
@@ -26,7 +26,7 @@ public class ListenerHandler implements Reloadable {
@Override
public void onEnable() {
// 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 BlockBreakPlaceListener(), 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 TownListener(), 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 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.conflict.battle.siege.Siege;
import com.github.alathra.AlathranWars.conflict.war.WarController;
import com.github.alathra.AlathranWars.items.WarItemRegistry;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.items.WarItemRegistry;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.TownBlock;
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.enums.battle.BattleSide;
import com.github.alathra.AlathranWars.utility.Utils;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.enums.battle.BattleSide;
import com.github.alathra.alathranwars.utility.Utils;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.event.actions.TownyBuildEvent;
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.utility.Utils;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.utility.Utils;
import com.palmergames.bukkit.towny.event.actions.TownyItemuseEvent;
import org.bukkit.Material;
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.utility.Utils;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.utility.Utils;
import com.palmergames.bukkit.towny.event.damage.TownyPlayerDamageEntityEvent;
import org.bukkit.entity.EntityType;
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.utility.Utils;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.utility.Utils;
import com.palmergames.bukkit.towny.event.deathprice.NationPaysDeathPriceEvent;
import com.palmergames.bukkit.towny.event.deathprice.PlayerPaysDeathPriceEvent;
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.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.utility.Utils;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.utility.Utils;
import com.ranull.graves.event.GraveCreateEvent;
import org.bukkit.entity.EntityType;
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.utility.Utils;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.utility.Utils;
import io.github.thatsmusic99.headsplus.api.events.PlayerHeadDropEvent;
import org.bukkit.event.EventHandler;
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.war.WarController;
import com.github.alathra.AlathranWars.enums.battle.BattleSide;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.enums.battle.BattleSide;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
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.war.WarController;
import com.github.alathra.AlathranWars.enums.battle.BattleSide;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.enums.battle.BattleSide;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
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.utility.Utils;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.utility.Utils;
import dev.geco.gsit.api.event.PreEntitySitEvent;
import org.bukkit.entity.Player;
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.war.War;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.enums.battle.BattleType;
import com.github.alathra.AlathranWars.enums.battle.BattleVictoryReason;
import com.github.alathra.AlathranWars.events.battle.BattleResultEvent;
import com.github.alathra.AlathranWars.events.battle.BattleStartEvent;
import com.github.alathra.AlathranWars.utility.UtilsChat;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.enums.battle.BattleType;
import com.github.alathra.alathranwars.enums.battle.BattleVictoryReason;
import com.github.alathra.alathranwars.events.battle.BattleResultEvent;
import com.github.alathra.alathranwars.events.battle.BattleStartEvent;
import com.github.alathra.alathranwars.utility.UtilsChat;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.object.Town;
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.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.hooks.NameColorHandler;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.palmergames.bukkit.towny.event.NationAddTownEvent;
import com.palmergames.bukkit.towny.event.NationPreRenameEvent;
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.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.hooks.NameColorHandler;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.hooks.NameColorHandler;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
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.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.hooks.NameColorHandler;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.hooks.NameColorHandler;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
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.WarController;
import com.github.alathra.AlathranWars.conflict.war.side.Side;
import com.github.alathra.AlathranWars.hooks.NameColorHandler;
import com.github.alathra.alathranwars.conflict.war.War;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.github.alathra.alathranwars.conflict.war.side.Side;
import com.github.alathra.alathranwars.hooks.NameColorHandler;
import com.github.milkdrinkers.colorparser.ColorParser;
import com.palmergames.bukkit.towny.event.TownAddResidentEvent;
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.config.ConfigHandler;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.config.ConfigHandler;
import com.github.milkdrinkers.Crate.Config;
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.db.DatabaseHandler;
import com.github.alathra.AlathranWars.db.DatabaseType;
import com.github.alathra.AlathranWars.db.jooq.JooqContext;
import com.github.alathra.alathranwars.AlathranWars;
import com.github.alathra.alathranwars.db.DatabaseHandler;
import com.github.alathra.alathranwars.db.DatabaseType;
import com.github.alathra.alathranwars.db.jooq.JooqContext;
import org.jetbrains.annotations.NotNull;
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 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.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.war.WarController;
import com.github.alathra.alathranwars.conflict.battle.siege.Siege;
import com.github.alathra.alathranwars.conflict.war.WarController;
import com.palmergames.bukkit.towny.object.WorldCoord;
import org.bukkit.Location;
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.jetbrains.annotations.NotNull;