Skip to content

Commit

Permalink
- Fix legacy economy provider check on admin logging in also running
Browse files Browse the repository at this point in the history
on servers with the economy aspect of Towny disabled.
  • Loading branch information
LlmDl committed Dec 2, 2024
1 parent 9a70480 commit b93aaba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Towny/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<artifactId>towny</artifactId>
<packaging>jar</packaging>
<version>0.101.0.1</version>
<version>0.101.0.2</version>

<licenses>
<license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ else if (nationHasPendingAllyInvites(nation))
audience.sendMessage(Translatable.of("default_towny_prefix").append(Translatable.of("msg_click_to_download")).locale(player).component().clickEvent(clickEvent));
}

if (TownyEconomyHandler.getProvider().isLegacy() && player.hasPermission(PermissionNodes.TOWNY_ADMIN_UPDATEALERTS.getNode())) {
if (TownyEconomyHandler.isActive() && TownyEconomyHandler.getProvider().isLegacy() && player.hasPermission(PermissionNodes.TOWNY_ADMIN_UPDATEALERTS.getNode())) {
Audience audience = Towny.getAdventure().player(player);
ClickEvent clickEvent = ClickEvent.runCommand("/townyadmin eco convert modern");
audience.sendMessage(Translatable.of("default_towny_prefix").append(Translatable.of("msg_legacy_economy_detected")).locale(player).component().clickEvent(clickEvent));
Expand Down
4 changes: 3 additions & 1 deletion Towny/src/main/resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10157,4 +10157,6 @@ v0.92.0.11:
- Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.10.1 to 3.11.1.
- Bump org.apache.logging.log4j:log4j-core from 2.24.1 to 2.24.2.
- Bump com.zaxxer:HikariCP from 6.0.0 to 6.2.1.
- Drop Java back to 17 to support 1.19.
- Drop Java back to 17 to support 1.19.
0.101.0.2:
- Fix legacy economy provider check on admin logging in also running on servers with the economy aspect of Towny disabled.

0 comments on commit b93aaba

Please sign in to comment.