From e805d1047f1c1a694b9a095a8a2d2b23e7caa2f0 Mon Sep 17 00:00:00 2001 From: snowleo Date: Tue, 19 Jul 2011 11:29:16 +0200 Subject: The event.getPlayer() is needed for the hook. --- .../src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java | 2 +- .../src/com/earth2me/essentials/chat/IEssentialsChatListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'EssentialsChat/src') diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java index 28adf9c2c..634dc7157 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java @@ -120,7 +120,7 @@ public class EssentialsChatPlayerListener extends PlayerListener for (IEssentialsChatListener listener : listeners.values()) { - message = listener.modifyMessage(message); + message = listener.modifyMessage(event, message); } //if (factions != null) diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/IEssentialsChatListener.java b/EssentialsChat/src/com/earth2me/essentials/chat/IEssentialsChatListener.java index 9cd1157e0..e8467fea7 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/IEssentialsChatListener.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/IEssentialsChatListener.java @@ -7,5 +7,5 @@ public interface IEssentialsChatListener { boolean shouldHandleThisChat(PlayerChatEvent event); - String modifyMessage(String message); + String modifyMessage(PlayerChatEvent event, String message); } -- cgit v1.2.3