Skip to content

Commit

Permalink
Fix placeholder replacement bug. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItzNxthaniel committed Jul 18, 2022
1 parent 2a6afe1 commit 2875288
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/firecontroller1847/dynmapps/DynmapPS.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ public void update() {
// Set name
if (clan != null) {
finalName = ourLayer.getDisplay().getClanName()
.replace("%id%", String.valueOf(field.getId()))
.replace("%name%", field.getName())
.replace("%owner%", field.getOwner())
.replace("%title%", field.getSettings().getTitle())
.replace("%clan%", clan.getName())
.replace("%clan_owner%", clan.getLeaders().get(0).getCleanName())
.replace("%clan_description%", clan.getDescription() != null ? clan.getDescription() : "")
Expand Down

0 comments on commit 2875288

Please sign in to comment.