From 9a2acc826e4cc37642219f718cdb8c1eca0c8703 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 3 Jan 2019 16:39:38 +1100 Subject: [PATCH] #2569: Respect disabled_commands setting for 1.13 tab completion --- .../main/java/net/md_5/bungee/connection/DownstreamBridge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java index 25b81722..a007d454 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java @@ -544,7 +544,7 @@ public class DownstreamBridge extends PacketHandler { for ( Map.Entry command : bungee.getPluginManager().getCommands() ) { - if ( commands.getRoot().getChild( command.getKey() ) == null && command.getValue().hasPermission( con ) ) + if ( !bungee.getDisabledCommands().contains( command.getKey() ) && commands.getRoot().getChild( command.getKey() ) == null && command.getValue().hasPermission( con ) ) { LiteralCommandNode dummy = LiteralArgumentBuilder.literal( command.getKey() ) .then( RequiredArgumentBuilder.argument( "args", StringArgumentType.greedyString() )