Skip to content

Commit

Permalink
Merge pull request #657 from TownyAdvanced/hotfix/nationlevel_adaptation
Browse files Browse the repository at this point in the history
Adapt to NationLevel change in Towny. Min Towny version 0.98.3.4.
  • Loading branch information
LlmDl authored Aug 8, 2022
2 parents adec3fc + c925d74 commit f026611
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<dependency>
<groupId>com.palmergames.bukkit.towny</groupId>
<artifactId>towny</artifactId>
<version>0.98.2.0</version>
<version>0.98.3.4</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/gmail/goosius/siegewar/SiegeWar.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
public class SiegeWar extends JavaPlugin {

private static SiegeWar plugin;
private final Version requiredTownyVersion = Version.fromString("0.98.2.0");
private final Version requiredTownyVersion = Version.fromString("0.98.3.4");
private static final SiegeHUDManager siegeHUDManager = new SiegeHUDManager();

private static boolean siegeWarPluginError = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ public void onPreNationEnemyRemove(NationPreRemoveEnemyEvent event) {
@EventHandler
public void on(NationBonusCalculationEvent event) {
Nation effectiveNation = SiegeWarNationUtil.getEffectiveNation(event.getNation());
int bonusBlocks = (Integer) TownySettings.getNationLevel(effectiveNation).get(TownySettings.NationLevel.TOWN_BLOCK_LIMIT_BONUS);
event.setBonusBlocks(bonusBlocks);
event.setBonusBlocks(TownySettings.getNationLevel(effectiveNation).townBlockLimitBonus());
}

/**
Expand Down

0 comments on commit f026611

Please sign in to comment.