diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-19 11:29:16 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-19 11:29:16 +0200 |
commit | e805d1047f1c1a694b9a095a8a2d2b23e7caa2f0 (patch) | |
tree | c7dd1de59cc3699413054f7730d52fd02531201a /EssentialsChat/src/com/earth2me | |
parent | dc99efb0a73f13be687a19e4b77623e6cc0dfe68 (diff) | |
download | Essentials-e805d1047f1c1a694b9a095a8a2d2b23e7caa2f0.tar Essentials-e805d1047f1c1a694b9a095a8a2d2b23e7caa2f0.tar.gz Essentials-e805d1047f1c1a694b9a095a8a2d2b23e7caa2f0.tar.lz Essentials-e805d1047f1c1a694b9a095a8a2d2b23e7caa2f0.tar.xz Essentials-e805d1047f1c1a694b9a095a8a2d2b23e7caa2f0.zip |
The event.getPlayer() is needed for the hook.
Diffstat (limited to 'EssentialsChat/src/com/earth2me')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java | 2 | ||||
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/IEssentialsChatListener.java | 2 |
2 files changed, 2 insertions, 2 deletions
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); } |