Use bukkit api for chat user list

This commit is contained in:
KHobbits 2012-12-31 05:43:05 +00:00
parent 6c3b2076ff
commit 4cec7fe5c1

View File

@ -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;