From 0923d35dd4906c051a814c7ddab652ab6f877cb6 Mon Sep 17 00:00:00 2001 From: ElgarL Date: Fri, 28 Oct 2011 14:16:35 +0000 Subject: [PATCH] - Fixed missing {} around modplayername. --- src/changelog.txt | 3 ++- src/com/palmergames/bukkit/TownyChat/TownyChatFormatter.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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"); } /**