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 | 3b749c6a68a58347f703db36cd8958167dadbae7 (patch) | |
tree | f647b25411d86e0324ac9136f46e38476a3baa92 | |
parent | 9b0b37ee818c64487bafc02dcc104ae8cff7d5e2 (diff) | |
download | Essentials-3b749c6a68a58347f703db36cd8958167dadbae7.tar Essentials-3b749c6a68a58347f703db36cd8958167dadbae7.tar.gz Essentials-3b749c6a68a58347f703db36cd8958167dadbae7.tar.lz Essentials-3b749c6a68a58347f703db36cd8958167dadbae7.tar.xz Essentials-3b749c6a68a58347f703db36cd8958167dadbae7.zip |
Readded some code, so that the user is not checked, if he is next to himself.
-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(); |