- Allow global chat to pass through un-changed if there are no channels
to talk in (requires setting modify_chat: false).
This commit is contained in:
ElgarL committed 2013-06-24 18:52:49 +01:00
1 parent 255baa6a0c
commit 375a8dccb7
3 files changed
+7 -5

No files matched your search

+3 -1
View File
@@ -176,4 +176,6 @@ v0.37:
v0.38:
- Fire chat Async so it matches all other chat.
v0.39:
- Ignore cancelled commands and chat.
- Ignore cancelled commands and chat.
v0.40:
- Allow global chat to pass through un-changed if there are no channels to talk in (requires setting modify_chat: false).
@@ -109,10 +109,10 @@ public class StandardChannel extends Channel {
/*
* Perform all replace functions on this format
*/
if (ChatSettings.isModify_chat())
//if (ChatSettings.isModify_chat())
event.setFormat(Format.replace("{channelTag}", getChannelTag()).replace("{msgcolour}", getMessageColour()));
else
event.setFormat(event.getFormat().replace("{channelTag}", getChannelTag()).replace("{msgcolour}", getMessageColour()));
//else
// event.setFormat(event.getFormat().replace("{channelTag}", getChannelTag()).replace("{msgcolour}", getMessageColour()));
LocalTownyChatEvent chatEvent = new LocalTownyChatEvent(event, resident);
event.setFormat(TownyChatFormatter.getChatFormat(chatEvent));
+1 -1
View File
@@ -1,6 +1,6 @@
name: TownyChat
main: com.palmergames.bukkit.TownyChat.Chat
version: 0.39
version: 0.40
author: ElgarL, Shade, phrstbrn
website: http://code.google.com/a/eclipselabs.org/p/towny/
description: >