summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-01-16 19:42:15 +0000
committerKHobbits <rob@khobbits.co.uk>2012-01-16 19:42:15 +0000
commit6e1a0e538fe2b574945d5f3a32a574cbb439e12a (patch)
tree1be6cd0bac0b08c68d72dd7508dc6f685184a7e3 /EssentialsChat/src
parentcb3f60c1be84650106be375bbf7a809b2d341d9a (diff)
downloadEssentials-6e1a0e538fe2b574945d5f3a32a574cbb439e12a.tar
Essentials-6e1a0e538fe2b574945d5f3a32a574cbb439e12a.tar.gz
Essentials-6e1a0e538fe2b574945d5f3a32a574cbb439e12a.tar.lz
Essentials-6e1a0e538fe2b574945d5f3a32a574cbb439e12a.tar.xz
Essentials-6e1a0e538fe2b574945d5f3a32a574cbb439e12a.zip
Stripping vanilla colours from /msg
Diffstat (limited to 'EssentialsChat/src')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
index 2d6e1ae4e..432e2309c 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
@@ -112,7 +112,7 @@ public abstract class EssentialsChatPlayer extends PlayerListener
logger.info(_("localFormat", sender.getName(), event.getMessage()));
final Location loc = sender.getLocation();
final World world = loc.getWorld();
-
+
for (Player onlinePlayer : server.getOnlinePlayers())
{
String type = "[L]";
@@ -123,11 +123,14 @@ public abstract class EssentialsChatPlayer extends PlayerListener
continue;
}
if (!user.equals(sender))
- {
+ {
final Location playerLoc = user.getLocation();
- if (playerLoc.getWorld() != world) { continue; }
+ if (playerLoc.getWorld() != world)
+ {
+ continue;
+ }
final double delta = playerLoc.distanceSquared(loc);
-
+
if (delta > radius)
{
if (user.isAuthorized("essentials.chat.spy"))