From 1b7f4dc61a49402768641acf52002560f420246b Mon Sep 17 00:00:00 2001 From: LlmDl Date: Thu, 26 Sep 2024 19:36:09 -0600 Subject: [PATCH] Fix dynmap popup not parsing placeholder. (#154) --- pom.xml | 2 +- .../listeners/TownyResourcesDynmapTownyListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0ceb3d7..95feb30 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 io.github.townyadvanced TownyResources - 0.10.0 + 0.10.1 townyresources diff --git a/src/main/java/io/github/townyadvanced/townyresources/listeners/TownyResourcesDynmapTownyListener.java b/src/main/java/io/github/townyadvanced/townyresources/listeners/TownyResourcesDynmapTownyListener.java index bdc8c3b..3290987 100644 --- a/src/main/java/io/github/townyadvanced/townyresources/listeners/TownyResourcesDynmapTownyListener.java +++ b/src/main/java/io/github/townyadvanced/townyresources/listeners/TownyResourcesDynmapTownyListener.java @@ -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()))); } } }