- Fix missing space following the title in {townyprefix} (when there is

no mayor/king prefix present.)
This commit is contained in:
Llm Dl committed 2019-10-14 07:56:00 -05:00
1 parent 02573e6bde
commit 475e26dc81
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -245,4 +245,4 @@ v0.57:
- New ChatConfig option: chat_colour.nomad
- Default: &f
- You can now set the {townycolour} for players without a town.
- Fix missing space following {title} and {townyprefix} (when it is calling for a resident's title.)
- Fix missing space following the title in {townyprefix} (when there is no mayor/king prefix present.)
@@ -94,7 +94,7 @@ public class TownyChatFormatter {
replacer.registerFormatReplacement(Pattern.quote("{title}"), new TownyChatReplacerCallable() {
@Override
public String call(String match, LocalTownyChatEvent event) throws Exception {
return event.getResident().hasTitle() ? event.getResident().getTitle() + " " : "";
return event.getResident().hasTitle() ? event.getResident().getTitle() : "";
}
});
replacer.registerFormatReplacement(Pattern.quote("{surname}"), new TownyChatReplacerCallable() {