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
commit3b749c6a68a58347f703db36cd8958167dadbae7 (patch)
treef647b25411d86e0324ac9136f46e38476a3baa92 /EssentialsChat
parent9b0b37ee818c64487bafc02dcc104ae8cff7d5e2 (diff)
downloadEssentials-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.
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();