TownyAdvanced / MapTowny

A Towny add-on Bukkit plugin that enables towns to show up on a web-map.
MIT License
22 stars 18 forks source link

Can I change placeholders 'true' and 'false' to different values? #55

Closed DoubleTrouble-rbxm closed 9 months ago

DoubleTrouble-rbxm commented 9 months ago

Hello there! I'm trying to figure out how to change placeholders values from default true and false to something like 'enabled' and 'disabled'. By default the code looks like this PVP: <span style="font-weight:bold;">%pvp%</span> and the output is PVP: true or PVP: false. I want to have PVP: Enabled and PVP: Disabled output but I have no idea how to do that because it uses html and also it doesn't support Placeholders from other addons. Is there a way to do that without changing the code of the plugin? Thank you!

DoubleTrouble-rbxm commented 9 months ago

Figured it out. It was pretty hard using APIs but I managed to do it.