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

Fix issue with cross world local chat.

This commit is contained in:
md_5
2012-06-26 18:13:53 +10:00
parent 3d53212b9b
commit c802f19f53

View File

@@ -133,11 +133,14 @@ public abstract class EssentialsChatPlayer implements Listener
{ {
abort = true; abort = true;
} }
else
{
final double delta = playerLoc.distanceSquared(loc); final double delta = playerLoc.distanceSquared(loc);
if (delta > chatStore.getRadius()) if (delta > chatStore.getRadius())
{ {
abort = true; abort = true;
} }
}
if (abort) if (abort)
{ {
if (onlineUser.isAuthorized("essentials.chat.spy")) if (onlineUser.isAuthorized("essentials.chat.spy"))