From 4cec7fe5c143f5fbb7f73533c3af89df0e0849a2 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Mon, 31 Dec 2012 05:43:05 +0000 Subject: [PATCH] Use bukkit api for chat user list --- .../com/earth2me/essentials/chat/EssentialsChatPlayer.java | 6 +----- 1 file changed, 1 insertion(+), 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;