diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-23 02:07:25 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-23 02:07:25 +0200 |
commit | 0f3c0e82f23a700c79e752592d5c01a42f7bcbbe (patch) | |
tree | 9aec67f45e69d450f9b5a30603177f813131183b /EssentialsChat/src | |
parent | 0e21d3287e46543aaa95186d68aef556359b874d (diff) | |
download | Essentials-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/src')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java | 2 |
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(); |