Fix join and leave messages being send only to ignored players
This commit is contained in:
1 parent
1c8538547e
commit
53cecf892a
1 file changed
+1
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user