summaryrefslogtreecommitdiffstats
path: root/EssentialsChat
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-23 02:07:25 +0200
committersnowleo <schneeleo@gmail.com>2011-07-23 02:07:25 +0200
commit0f3c0e82f23a700c79e752592d5c01a42f7bcbbe (patch)
tree9aec67f45e69d450f9b5a30603177f813131183b /EssentialsChat
parent0e21d3287e46543aaa95186d68aef556359b874d (diff)
downloadEssentials-0f3c0e82f23a700c79e752592d5c01a42f7bcbbe.tar
Essentials-0f3c0e82f23a700c79e752592d5c01a42f7bcbbe.tar.gz
Essentials-0f3c0e82f23a700c79e752592d5c01a42f7bcbbe.tar.lz
Essentials-0f3c0e82f23a700c79e752592d5c01a42f7bcbbe.tar.xz
Essentials-0f3c0e82f23a700c79e752592d5c01a42f7bcbbe.zip
Readded some code, so that the user is not checked, if he is next to himself.
Diffstat (limited to 'EssentialsChat')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java
index bb5443a26..6b3039d0b 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java
@@ -101,7 +101,7 @@ public class EssentialsChatPlayerListener extends PlayerListener
{
continue;
}
- if (!u.isAuthorized("essentials.chat.spy"))
+ if (!u.equals(user) && !u.isAuthorized("essentials.chat.spy"))
{
final Location l = u.getLocation();
final int dx = x - l.getBlockX();