diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-04-06 02:36:27 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-04-06 02:36:27 +0100 |
commit | 1f8648dbccff5e8ed46d47631f6ac8920573a1c8 (patch) | |
tree | 6914a502c2b9c29551594d297ad3d0c6dc96b6fa /EssentialsChat/src/com | |
parent | 69d0090fc2237f86e24999ed93698fae6d5c9782 (diff) | |
download | Essentials-1f8648dbccff5e8ed46d47631f6ac8920573a1c8.tar Essentials-1f8648dbccff5e8ed46d47631f6ac8920573a1c8.tar.gz Essentials-1f8648dbccff5e8ed46d47631f6ac8920573a1c8.tar.lz Essentials-1f8648dbccff5e8ed46d47631f6ac8920573a1c8.tar.xz Essentials-1f8648dbccff5e8ed46d47631f6ac8920573a1c8.zip |
Chat spy, should show otherworld chat.
Diffstat (limited to 'EssentialsChat/src/com')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java | 17 |
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; } |