summaryrefslogtreecommitdiffstats
path: root/EssentialsChat
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-12-31 05:43:05 +0000
committerKHobbits <rob@khobbits.co.uk>2012-12-31 05:43:05 +0000
commit4cec7fe5c143f5fbb7f73533c3af89df0e0849a2 (patch)
treed6f005bf5a16a8499d77423ead8866413fee20bc /EssentialsChat
parent6c3b2076ffc64782b17be6bfb905acd02a624798 (diff)
downloadEssentials-4cec7fe5c143f5fbb7f73533c3af89df0e0849a2.tar
Essentials-4cec7fe5c143f5fbb7f73533c3af89df0e0849a2.tar.gz
Essentials-4cec7fe5c143f5fbb7f73533c3af89df0e0849a2.tar.lz
Essentials-4cec7fe5c143f5fbb7f73533c3af89df0e0849a2.tar.xz
Essentials-4cec7fe5c143f5fbb7f73533c3af89df0e0849a2.zip
Use bukkit api for chat user list
Diffstat (limited to 'EssentialsChat')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
index 2324c65d9..8ca1e0726 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
@@ -134,14 +134,10 @@ public abstract class EssentialsChatPlayer implements Listener
return;
}
- for (Player onlinePlayer : server.getOnlinePlayers())
+ for (Player onlinePlayer : event.getRecipients())
{
String type = _("chatTypeLocal");
final User onlineUser = ess.getUser(onlinePlayer);
- if (onlineUser.isIgnoredPlayer(sender))
- {
- continue;
- }
if (!onlineUser.equals(sender))
{
boolean abort = false;