StandardEntityEventBroadcaster: suppress client-side emote messages

if users want these, they can broadcast them themselves using Server::broadcastMessage(), which will also record the message in the server log like chat

closes #5669
This commit is contained in:
Dylan K. Taylor 2023-07-20 16:20:34 +01:00
parent cff4a8d2bc
commit 5e7f18cbcf
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -138,6 +138,6 @@ final class StandardEntityEventBroadcaster implements EntityEventBroadcaster{
}
public function onEmote(array $recipients, Human $from, string $emoteId) : void{
$this->sendDataPacket($recipients, EmotePacket::create($from->getId(), $emoteId, "", "", EmotePacket::FLAG_SERVER));
$this->sendDataPacket($recipients, EmotePacket::create($from->getId(), $emoteId, "", "", EmotePacket::FLAG_SERVER | EmotePacket::FLAG_MUTE_ANNOUNCEMENT));
}
}