mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-27 17:09:43 +00:00
Readded some code, so that the user is not checked, if he is next to himself.
This commit is contained in:
parent
0e21d3287e
commit
0f3c0e82f2
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue