diff --git a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java index 41101a6e..253c3287 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/UpstreamBridge.java @@ -171,10 +171,11 @@ public class UpstreamBridge extends PacketHandler public void handle(TabCompleteRequest tabComplete) throws Exception { List suggestions = new ArrayList<>(); + boolean isRegisteredCommand = false; if ( tabComplete.getCursor().startsWith( "/" ) ) { - bungee.getPluginManager().dispatchCommand( con, tabComplete.getCursor().substring( 1 ), suggestions ); + isRegisteredCommand = bungee.getPluginManager().dispatchCommand( con, tabComplete.getCursor().substring( 1 ), suggestions ); } TabCompleteEvent tabCompleteEvent = new TabCompleteEvent( con, con.getServer(), tabComplete.getCursor(), suggestions ); @@ -209,6 +210,12 @@ public class UpstreamBridge extends PacketHandler } throw CancelSendSignal.INSTANCE; } + + // Don't forward tab completions if the command is a registered bungee command + if ( isRegisteredCommand ) + { + throw CancelSendSignal.INSTANCE; + } } @Override