Skip to content

Commit

Permalink
Fix dynmap popup not parsing placeholder. (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl authored Sep 27, 2024
1 parent 784de56 commit 1b7f4dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.townyadvanced</groupId>
<artifactId>TownyResources</artifactId>
<version>0.10.0</version>
<version>0.10.1</version>
<name>townyresources</name> <!-- Leave lower-cased -->

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class TownyResourcesDynmapTownyListener implements Listener {
public void on(BuildTownMarkerDescriptionEvent event) {
if (TownyResourcesSettings.isEnabled()) {
if (event.getDescription().contains("%town_resources%")) {
event.setDescription(event.getDescription().replace("%town_resource%", TownyResources.getPlugin().getResourcesString(event.getTown())));
event.setDescription(event.getDescription().replace("%town_resources%", TownyResources.getPlugin().getResourcesString(event.getTown())));
}
}
}
Expand Down

0 comments on commit 1b7f4dc

Please sign in to comment.