#2569: Respect disabled_commands setting for 1.13 tab completion
This commit is contained in:
parent
4fa1d82b81
commit
9a2acc826e
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user