mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-05 14:18:21 +02:00
Chat spy, should show otherworld chat.
This commit is contained in:
@@ -126,20 +126,19 @@ public abstract class EssentialsChatPlayer implements Listener
|
|||||||
}
|
}
|
||||||
if (!onlineUser.equals(sender))
|
if (!onlineUser.equals(sender))
|
||||||
{
|
{
|
||||||
final Location playerLoc = onlineUser.getLocation();
|
if (onlineUser.isAuthorized("essentials.chat.spy"))
|
||||||
if (playerLoc.getWorld() != world)
|
|
||||||
{
|
{
|
||||||
continue;
|
type = type.concat(_("chatTypeSpy"));
|
||||||
}
|
}
|
||||||
final double delta = playerLoc.distanceSquared(loc);
|
else
|
||||||
|
|
||||||
if (delta > chatStore.getRadius())
|
|
||||||
{
|
{
|
||||||
if (onlineUser.isAuthorized("essentials.chat.spy"))
|
final Location playerLoc = onlineUser.getLocation();
|
||||||
|
if (playerLoc.getWorld() != world)
|
||||||
{
|
{
|
||||||
type = type.concat(_("chatTypeSpy"));
|
continue;
|
||||||
}
|
}
|
||||||
else
|
final double delta = playerLoc.distanceSquared(loc);
|
||||||
|
if (delta > chatStore.getRadius())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user