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:
@@ -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"))
|
||||||
|
Reference in New Issue
Block a user