From 375a8dccb74aaefc1be2b6bf748c383e812c7940 Mon Sep 17 00:00:00 2001 From: ElgarL Date: Mon, 24 Jun 2013 18:52:49 +0100 Subject: [PATCH] v0.40: - Allow global chat to pass through un-changed if there are no channels to talk in (requires setting modify_chat: false). --- src/changelog.txt | 4 +++- .../bukkit/TownyChat/channels/StandardChannel.java | 6 +++--- src/plugin.yml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/changelog.txt b/src/changelog.txt index f714150..befa2ec 100644 --- a/src/changelog.txt +++ b/src/changelog.txt @@ -176,4 +176,6 @@ v0.37: v0.38: - Fire chat Async so it matches all other chat. v0.39: - - Ignore cancelled commands and chat. \ No newline at end of file + - 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). \ 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 380531a..d6e2b97 100644 --- a/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java +++ b/src/com/palmergames/bukkit/TownyChat/channels/StandardChannel.java @@ -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)); diff --git a/src/plugin.yml b/src/plugin.yml index 9249a8c..636aaa4 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -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: >