Check if serverwrapper has global chat enabled before sending
This commit is contained in:
parent
7c15731dcd
commit
1c8538547e
|
|
@ -43,6 +43,7 @@ public class ServerHandler {
|
|||
// Component component = GsonComponentSerializer.gson().deserialize(message);
|
||||
|
||||
servers.stream()
|
||||
.filter(ServerWrapper::globalChat)
|
||||
.map(ServerWrapper::getRegisteredServer)
|
||||
.forEach(registeredServer -> {
|
||||
ByteArrayDataOutput buf = ByteStreams.newDataOutput();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user