summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-19 11:29:16 +0200
committersnowleo <schneeleo@gmail.com>2011-07-19 11:29:16 +0200
commite805d1047f1c1a694b9a095a8a2d2b23e7caa2f0 (patch)
treec7dd1de59cc3699413054f7730d52fd02531201a
parentdc99efb0a73f13be687a19e4b77623e6cc0dfe68 (diff)
downloadEssentials-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.
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java2
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/IEssentialsChatListener.java2
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);
}