aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason <[email protected]>2021-05-06 16:25:29 -0700
committerGitHub <[email protected]>2021-05-07 00:25:29 +0100
commit8fcef3c1f6df0c7dcacf36c056e4feb9759f0953 (patch)
tree0b47682bd9c5c535a5e7c73e8102eb66e2f56eb6
parent2a67a9e51263ecec2626e52530f606542244077e (diff)
downloadPaper-8fcef3c1f6df0c7dcacf36c056e4feb9759f0953.tar.gz
Paper-8fcef3c1f6df0c7dcacf36c056e4feb9759f0953.zip
Return after sending empty commands (#5586)
-rw-r--r--Spigot-Server-Patches/0720-Send-empty-commands-if-tab-completion-is-disabled.patch13
1 files changed, 8 insertions, 5 deletions
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
index b548b3e108..818cc40fa3 100644
--- 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
@@ -5,17 +5,20 @@ 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
+index 988d1c9e9f4f29325043eb083123d12dd5f8081d..29a395e69aab9c50a45c5fd5ab8795fd8e3ef727 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 {
+@@ -326,7 +326,12 @@ 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
++ // Paper start - Send empty commands if tab completion is disabled
++ if ( org.spigotmc.SpigotConfig.tabComplete < 0 ) { //return; // Spigot
++ entityplayer.playerConnection.sendPacket(new PacketPlayOutCommands(new RootCommandNode<>()));
++ return;
++ }
++ // Paper end
// CraftBukkit start
// Register Vanilla commands into builtRoot as before
// Paper start - Async command map building