From 81cc4f9280378f07456e7cbb0d0b1087aee8a743 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Wed, 5 May 2021 03:22:32 +0100 Subject: [PATCH] Send empty commands if tab completion is disabled (Closes #5519) Because this is a trivial fix to an annoying issue people are annoying about, but, really, stop punishing your players for your own insecurities. --- ...mmands-if-tab-completion-is-disabled.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Spigot-Server-Patches/0720-Send-empty-commands-if-tab-completion-is-disabled.patch diff --git a/Spigot-Server-Patches/0720-Send-empty-commands-if-tab-completion-is-disabled.patch b/Spigot-Server-Patches/0720-Send-empty-commands-if-tab-completion-is-disabled.patch new file mode 100644 index 000000000..b548b3e10 --- /dev/null +++ b/Spigot-Server-Patches/0720-Send-empty-commands-if-tab-completion-is-disabled.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Shane Freeder +Date: Mon, 26 Apr 2021 01:27:08 +0100 +Subject: [PATCH] Send empty commands if tab completion is disabled + + +diff --git a/src/main/java/net/minecraft/commands/CommandDispatcher.java b/src/main/java/net/minecraft/commands/CommandDispatcher.java +index 988d1c9e9f4f29325043eb083123d12dd5f8081d..87ddccc0808189cb80bef9d2c9eced362d025140 100644 +--- a/src/main/java/net/minecraft/commands/CommandDispatcher.java ++++ b/src/main/java/net/minecraft/commands/CommandDispatcher.java +@@ -326,7 +326,9 @@ public class CommandDispatcher { + } + + public void a(EntityPlayer entityplayer) { +- if ( org.spigotmc.SpigotConfig.tabComplete < 0 ) return; // Spigot ++ if ( org.spigotmc.SpigotConfig.tabComplete < 0 ) { //return; // Spigot // Paper ++ entityplayer.playerConnection.sendPacket(new PacketPlayOutCommands(new RootCommandNode<>())); // Paper ++ } // Paper + // CraftBukkit start + // Register Vanilla commands into builtRoot as before + // Paper start - Async command map building