quick instructions:
- install javascript papi extension
- create a folder in the PlaceholderAPI one called "javascripts"
- make a new file in javascripts called "townyprefix.js"
- paste this code into there:
function townyPrefix() {
if ("%townyadvanced_town%" !== "") {
return "%townyadvanced_town%";
} else {
return "No Town";
}
}
townyPrefix();
- make a file in PlaceholderAPI folder called "javascript_placeholders.yml"
- put this in the file:
townyprefix:
file: townyprefix.js
- use the placeholder %javascript_townyprefix%


<- cube