1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-03 13:17: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 afb8cfc042
commit a243082c3f

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"))