Fix join and leave messages being send only to ignored players

This commit is contained in:
destro174 2021-08-05 10:12:23 +02:00
parent 1c8538547e
commit 53cecf892a

View File

@ -43,7 +43,7 @@ public class ServerWrapper {
public void sendJoinLeaveMessage(UUID uuid, Component component) {
if(joinMessages())
getRegisteredServer().getPlayersConnected().stream()
.filter(p -> ChatUserManager.getChatUser(p.getUniqueId()).getIgnoredPlayers().contains(uuid))
.filter(p -> !ChatUserManager.getChatUser(p.getUniqueId()).getIgnoredPlayers().contains(uuid))
.forEach(p -> p.sendMessage(component));
}
}