summaryrefslogtreecommitdiffstats
path: root/EssentialsChat
diff options
context:
space:
mode:
Diffstat (limited to 'EssentialsChat')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
index ddf928725..6bdab0919 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
@@ -126,20 +126,19 @@ public abstract class EssentialsChatPlayer implements Listener
}
if (!onlineUser.equals(sender))
{
- final Location playerLoc = onlineUser.getLocation();
- if (playerLoc.getWorld() != world)
+ if (onlineUser.isAuthorized("essentials.chat.spy"))
{
- continue;
+ type = type.concat(_("chatTypeSpy"));
}
- final double delta = playerLoc.distanceSquared(loc);
-
- if (delta > chatStore.getRadius())
+ else
{
- 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;
}