diff --git a/src/changelog.txt b/src/changelog.txt index 27e0966..48c891c 100644 --- a/src/changelog.txt +++ b/src/changelog.txt @@ -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. \ No newline at end of file + - TownyChat now only enables itself if Towny successfully starts. + - Fixed missing {} around modplayername. \ No newline at end of file diff --git a/src/com/palmergames/bukkit/TownyChat/TownyChatFormatter.java b/src/com/palmergames/bukkit/TownyChat/TownyChatFormatter.java index 8eab0bc..f92c22d 100644 --- a/src/com/palmergames/bukkit/TownyChat/TownyChatFormatter.java +++ b/src/com/palmergames/bukkit/TownyChat/TownyChatFormatter.java @@ -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"); } /**