From 0f3c0e82f23a700c79e752592d5c01a42f7bcbbe Mon Sep 17 00:00:00 2001 From: snowleo Date: Sat, 23 Jul 2011 02:07:25 +0200 Subject: Readded some code, so that the user is not checked, if he is next to himself. --- .../src/com/earth2me/essentials/chat/EssentialsChatPlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'EssentialsChat/src/com/earth2me/essentials/chat') 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(); -- cgit v1.2.3