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 13637df58..c075cd559 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 @@ -134,17 +134,17 @@ public class UpstreamBridge extends PacketHandler TabCompleteEvent tabCompleteEvent = new TabCompleteEvent( con, con.getServer(), tabComplete.getCursor(), suggestions ); bungee.getPluginManager().callEvent( tabCompleteEvent ); + if ( tabCompleteEvent.isCancelled() ) + { + throw CancelSendSignal.INSTANCE; + } + List results = tabCompleteEvent.getSuggestions(); if ( !results.isEmpty() ) { con.unsafe().sendPacket( new TabCompleteResponse( results ) ); throw CancelSendSignal.INSTANCE; } - - if ( tabCompleteEvent.isCancelled() ) - { - throw CancelSendSignal.INSTANCE; - } } @Override