1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-03 13:17:38 +02:00

Readded some code, so that the user is not checked, if he is next to himself.

This commit is contained in:
snowleo
2011-07-23 02:07:25 +02:00
parent 9b0b37ee81
commit 3b749c6a68

View File

@@ -101,7 +101,7 @@ public class EssentialsChatPlayerListener extends PlayerListener
{ {
continue; continue;
} }
if (!u.isAuthorized("essentials.chat.spy")) if (!u.equals(user) && !u.isAuthorized("essentials.chat.spy"))
{ {
final Location l = u.getLocation(); final Location l = u.getLocation();
final int dx = x - l.getBlockX(); final int dx = x - l.getBlockX();