From 2f1aaaa85cf1a166038cfff259f3276fe7825902 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke <nassim@njahnke.dev> Date: Tue, 18 Oct 2022 10:20:35 +0200 Subject: [PATCH] Fix another case of missing chat headers --- ...command-preprocess-cancelling-and-command-changi.patch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/patches/server/Fix-command-preprocess-cancelling-and-command-changi.patch b/patches/server/Fix-command-preprocess-cancelling-and-command-changi.patch index b5cc7d6cbf..fcb7557ddb 100644 --- a/patches/server/Fix-command-preprocess-cancelling-and-command-changi.patch +++ b/patches/server/Fix-command-preprocess-cancelling-and-command-changi.patch @@ -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);