Skip to content

Commit

Permalink
Bump version for release & bump min. Towny version to 0.100.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Jun 17, 2024
1 parent 47d78f4 commit fa2692c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.llmdlio</groupId>
<artifactId>TownyFlight</artifactId>
<version>1.10.2</version>
<version>1.11.0</version>
<name>TownyFlight</name>
<description>A flight plugin for Towny servers.</description>
<properties>
<java.version>17</java.version>
<project.bukkitAPIVersion>1.16</project.bukkitAPIVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<towny.version>0.99.0.6</towny.version>
<towny.version>0.100.3.0</towny.version>
</properties>
<build>
<defaultGoal>clean package</defaultGoal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import com.palmergames.bukkit.util.Version;

public class TownyFlight extends JavaPlugin {
private static final Version requiredTownyVersion = Version.fromString("0.99.0.6");
private static final Version requiredTownyVersion = Version.fromString("0.100.3.0");
private TownyFlightConfig config = new TownyFlightConfig(this);
private static TownyFlight plugin;
private static TownyFlightAPI api;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ public static boolean allowedLocation(Player player, Location location, Resident
if (instance.getForceAllowFlight(player))
return true;

if (TownyAPI.getInstance().isWilderness(location)) {
if (TownyAPI.getInstance().isWilderness(location))
return player.hasPermission("townyflight.wilderness");
}

Town town = TownyAPI.getInstance().getTown(location);

Expand Down

0 comments on commit fa2692c

Please sign in to comment.