#2569: Respect disabled_commands setting for 1.13 tab completion

This commit is contained in:
md_5 2019-01-03 16:39:38 +11:00
parent 4fa1d82b81
commit 9a2acc826e

View File

@ -544,7 +544,7 @@ public class DownstreamBridge extends PacketHandler
{
for ( Map.Entry<String, Command> 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() )