Fix another case of missing chat headers

This commit is contained in:
Nassim Jahnke 2022-10-18 10:20:35 +02:00
parent cd71f3c427
commit 2f1aaaa85c

View File

@ -38,3 +38,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
// CraftBukkit end
Iterator iterator = map.values().iterator();
@@ -0,0 +0,0 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic
}
});
} else if (this.player.getChatVisibility() == ChatVisiblity.SYSTEM) { // Re-add "Command Only" flag check
+ this.server.getPlayerList().broadcastMessageHeader(message, Set.of()); // Paper
this.send(new ClientboundSystemChatPacket(Component.translatable("chat.cannotSend").withStyle(ChatFormatting.RED), false));
} else {
this.chat(s, message, true);