- 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
+3 -2

No files matched your search

+2 -1
View File
@@ -5,4 +5,5 @@ v0.2:
- changed PLAYER_CHAT event to run earlier so we triger before other chat plugins.
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.
- 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");
}
/**