mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Use bukkit api for chat user list
This commit is contained in:
parent
6c3b2076ff
commit
4cec7fe5c1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user