From 9ea4de0f2737380edaceff4625c8f4b6db713f55 Mon Sep 17 00:00:00 2001 From: LlmDl Date: Fri, 12 Jul 2024 14:52:01 -0500 Subject: [PATCH] Update for breaking TransactionType change post 0.100.3.7. (#359) --- pom.xml | 2 +- src/main/java/io/github/townyadvanced/flagwar/FlagWar.java | 4 ++-- .../flagwar/listeners/FlagWarCustomListener.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 5159d250..67824ae5 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.palmergames.bukkit.towny towny - 0.100.0.0 + 0.100.3.7 provided diff --git a/src/main/java/io/github/townyadvanced/flagwar/FlagWar.java b/src/main/java/io/github/townyadvanced/flagwar/FlagWar.java index 1d739343..5384abc1 100644 --- a/src/main/java/io/github/townyadvanced/flagwar/FlagWar.java +++ b/src/main/java/io/github/townyadvanced/flagwar/FlagWar.java @@ -92,9 +92,9 @@ public class FlagWar extends JavaPlugin { /** FlagWar Copyright String. */ private static final String FW_COPYRIGHT = "Copyright \u00a9 2021–2023 TownyAdvanced"; /** Version for storing the minimum required version of Towny, for compatibility. */ - private static final Version MIN_TOWNY_VER = Version.fromString("0.100.0.0"); + private static final Version MIN_TOWNY_VER = Version.fromString("0.100.3.7"); /** Version for storing the latest supported version of Towny, for validation. */ - private static final Version VALID_TOWNY_VER = Version.fromString("0.100.0.0"); + private static final Version VALID_TOWNY_VER = Version.fromString("0.100.3.7"); /** Value of minimum configuration file version. Used for determining if file should be regenerated. */ private static final double MIN_CONFIG_VER = 1.6; /** BStats Metrics ID. */ diff --git a/src/main/java/io/github/townyadvanced/flagwar/listeners/FlagWarCustomListener.java b/src/main/java/io/github/townyadvanced/flagwar/listeners/FlagWarCustomListener.java index 3efd1169..2cd6f948 100644 --- a/src/main/java/io/github/townyadvanced/flagwar/listeners/FlagWarCustomListener.java +++ b/src/main/java/io/github/townyadvanced/flagwar/listeners/FlagWarCustomListener.java @@ -32,7 +32,7 @@ import com.palmergames.bukkit.towny.object.Resident; import com.palmergames.bukkit.towny.object.Town; import com.palmergames.bukkit.towny.object.TownBlock; -import com.palmergames.bukkit.towny.object.TransactionType; +import com.palmergames.bukkit.towny.object.economy.transaction.TransactionType; import com.palmergames.bukkit.towny.object.WorldCoord; import io.github.townyadvanced.flagwar.FlagWar; import io.github.townyadvanced.flagwar.FlagWarAPI;