- Only modify the chat format if modify_chat = true for all channels.
This commit is contained in:
ElgarL committed 2012-11-17 23:30:28 +00:00
1 parent 582796e43a
commit 613880d560
3 files changed
+5 -1

No files matched your search

+2
View File
@@ -129,3 +129,5 @@ v0.31:
v0.32: v0.32:
- Don't check version of CraftIRC. Will work with all versions post 3.1. - Don't check version of CraftIRC. Will work with all versions post 3.1.
- Fix for not colouring resident titles. - Fix for not colouring resident titles.
v0.33:
- Only modify the chat format if modify_chat = true for all channels.
@@ -96,7 +96,9 @@ public class StandardChannel extends Channel {
/* /*
* Perform all replace functions on this format * Perform all replace functions on this format
*/ */
if (ChatSettings.isModify_chat())
event.setFormat(Format.replace("{channelTag}", getChannelTag()).replace("{msgcolour}", getMessageColour())); event.setFormat(Format.replace("{channelTag}", getChannelTag()).replace("{msgcolour}", getMessageColour()));
LocalTownyChatEvent chatEvent = new LocalTownyChatEvent(event, resident); LocalTownyChatEvent chatEvent = new LocalTownyChatEvent(event, resident);
event.setFormat(TownyChatFormatter.getChatFormat(chatEvent)); event.setFormat(TownyChatFormatter.getChatFormat(chatEvent));
+1 -1
View File
@@ -1,6 +1,6 @@
name: TownyChat name: TownyChat
main: com.palmergames.bukkit.TownyChat.Chat main: com.palmergames.bukkit.TownyChat.Chat
version: 0.32 version: 0.33
author: ElgarL, Shade, phrstbrn author: ElgarL, Shade, phrstbrn
website: http://code.google.com/a/eclipselabs.org/p/towny/ website: http://code.google.com/a/eclipselabs.org/p/towny/
description: > description: >