diff --git a/src/changelog.txt b/src/changelog.txt index 48c891c..e9e477d 100644 --- a/src/changelog.txt +++ b/src/changelog.txt @@ -6,4 +6,6 @@ v0.2: 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. - - Fixed missing {} around modplayername. \ No newline at end of file + - Fixed missing {} around modplayername. +v0.4: + - Fixed custom channel chat not showing in the console. \ No newline at end of file diff --git a/src/com/palmergames/bukkit/TownyChat/event/TownyPlayerHighestListener.java b/src/com/palmergames/bukkit/TownyChat/event/TownyPlayerHighestListener.java index 48e9df3..a12f1e1 100644 --- a/src/com/palmergames/bukkit/TownyChat/event/TownyPlayerHighestListener.java +++ b/src/com/palmergames/bukkit/TownyChat/event/TownyPlayerHighestListener.java @@ -146,6 +146,7 @@ public class TownyPlayerHighestListener extends PlayerListener { TownyChatEvent chatEvent = new TownyChatEvent(event, resident); event.setFormat(TownyChatFormatter.getChatFormat(chatEvent)); + TownyUniverse.plugin.log(chatEvent.getFormat().replace("%1$s", event.getPlayer().getDisplayName()).replace("%2$s", event.getMessage())); for (Player test : plugin.getTownyUniverse().getOnlinePlayers()) { if (!plugin.isPermissions() || (plugin.isPermissions() && TownyUniverse.getPermissionSource().hasPermission(test, TownySettings.getChatChannelPermission(command)))) TownyMessaging.sendMessage(test, chatEvent.getFormat().replace("%1$s", event.getPlayer().getDisplayName()).replace("%2$s", event.getMessage())); diff --git a/src/plugin.yml b/src/plugin.yml index 7bf9a77..de8de61 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: TownyChat main: com.palmergames.bukkit.TownyChat.Chat -version: 0.3 +version: 0.4 author: ElgarL website: http://code.google.com/a/eclipselabs.org/p/towny/ description: >