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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Player onlinePlayer : server.getOnlinePlayers())
|
for (Player onlinePlayer : event.getRecipients())
|
||||||
{
|
{
|
||||||
String type = _("chatTypeLocal");
|
String type = _("chatTypeLocal");
|
||||||
final User onlineUser = ess.getUser(onlinePlayer);
|
final User onlineUser = ess.getUser(onlinePlayer);
|
||||||
if (onlineUser.isIgnoredPlayer(sender))
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (!onlineUser.equals(sender))
|
if (!onlineUser.equals(sender))
|
||||||
{
|
{
|
||||||
boolean abort = false;
|
boolean abort = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user