aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2022-10-18 10:20:35 +0200
committerNassim Jahnke <[email protected]>2022-10-18 10:20:35 +0200
commite1d4b26a62e04f94b34b59365d05de9bd01cd23b (patch)
tree5f3bf1e6da7372d3bb67d229f532796522111e8b
parented2c88ba89b99fb31da43860be46c28f0dd60747 (diff)
downloadPaper-e1d4b26a62e04f94b34b59365d05de9bd01cd23b.tar.gz
Paper-e1d4b26a62e04f94b34b59365d05de9bd01cd23b.zip
Fix another case of missing chat headers
-rw-r--r--patches/server/0895-Fix-command-preprocess-cancelling-and-command-changi.patch10
1 files changed, 9 insertions, 1 deletions
diff --git a/patches/server/0895-Fix-command-preprocess-cancelling-and-command-changi.patch b/patches/server/0895-Fix-command-preprocess-cancelling-and-command-changi.patch
index 501d00e40b..6a4d1cbe43 100644
--- a/patches/server/0895-Fix-command-preprocess-cancelling-and-command-changi.patch
+++ b/patches/server/0895-Fix-command-preprocess-cancelling-and-command-changi.patch
@@ -5,7 +5,7 @@ Subject: [PATCH] Fix command preprocess cancelling and command changing
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
-index e88c82aac6d9947c7205f865c18146e7a5756b40..1ff25ce408aba3620455f74e1535b5862b3bbdf9 100644
+index e88c82aac6d9947c7205f865c18146e7a5756b40..8ae8055c185237a76159285c8fce3aacc295fb3b 100644
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
@@ -2259,13 +2259,24 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic
@@ -38,3 +38,11 @@ index e88c82aac6d9947c7205f865c18146e7a5756b40..1ff25ce408aba3620455f74e1535b586
// CraftBukkit end
Iterator iterator = map.values().iterator();
+@@ -2569,6 +2580,7 @@ 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);