diff --git a/src/changelog.txt b/src/changelog.txt index bb268c3..1b8f9fa 100644 --- a/src/changelog.txt +++ b/src/changelog.txt @@ -128,4 +128,6 @@ v0.31: - Fix in onPlayerCommandPreprocess for an empty message error. v0.32: - Don't check version of CraftIRC. Will work with all versions post 3.1. - - Fix for not colouring resident titles. \ No newline at end of file + - Fix for not colouring resident titles. +v0.33: + - Only modify the chat format if modify_chat = true for all channels. \ No newline at end of file diff --git a/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java b/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java index f65d7e5..d915d47 100644 --- a/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java +++ b/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java @@ -96,7 +96,9 @@ public class StandardChannel extends Channel { /* * Perform all replace functions on this format */ - event.setFormat(Format.replace("{channelTag}", getChannelTag()).replace("{msgcolour}", getMessageColour())); + if (ChatSettings.isModify_chat()) + event.setFormat(Format.replace("{channelTag}", getChannelTag()).replace("{msgcolour}", getMessageColour())); + LocalTownyChatEvent chatEvent = new LocalTownyChatEvent(event, resident); event.setFormat(TownyChatFormatter.getChatFormat(chatEvent)); diff --git a/src/plugin.yml b/src/plugin.yml index fbf3c9f..312ab77 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: TownyChat main: com.palmergames.bukkit.TownyChat.Chat -version: 0.32 +version: 0.33 author: ElgarL, Shade, phrstbrn website: http://code.google.com/a/eclipselabs.org/p/towny/ description: >