- Fixed missing {} around modplayername.

This commit is contained in:
ElgarL committed 2011-10-28 14:16:35 +00:00
1 parent 86d6cbea7c
commit 0923d35dd4
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -6,3 +6,4 @@ v0.2:
If players are using chat modes we need to run first to cancel the chat event for other plugins.
v0.3:
- TownyChat now only enables itself if Towny successfully starts.
- Fixed missing {} around modplayername.
@@ -180,7 +180,7 @@ public class TownyChatFormatter {
public static String getChatFormat(TownyChatEvent event) {
// Replace the {msg} here so it's not regex parsed.
return replacer.replaceAll(event.getFormat(), event).replace("modplayername", "%1$s").replace("{msg}", "%2$s");
return replacer.replaceAll(event.getFormat(), event).replace("{modplayername}", "%1$s").replace("{msg}", "%2$s");
}
/**