mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
Only interrupt tab completion if we have things to complete!
This commit is contained in:
parent
5ed5c71aea
commit
db5510cc4e
@ -99,10 +99,14 @@ public class UpstreamBridge extends PacketHandler
|
|||||||
{
|
{
|
||||||
List<String> results = new ArrayList<>();
|
List<String> results = new ArrayList<>();
|
||||||
bungee.getPluginManager().dispatchCommand( con, tabComplete.getCursor().substring( 1, tabComplete.getCursor().length() ), results );
|
bungee.getPluginManager().dispatchCommand( con, tabComplete.getCursor().substring( 1, tabComplete.getCursor().length() ), results );
|
||||||
|
|
||||||
|
if ( !results.isEmpty() )
|
||||||
|
{
|
||||||
con.unsafe().sendPacket( new PacketCBTabComplete( results.toArray( new String[ results.size() ] ) ) );
|
con.unsafe().sendPacket( new PacketCBTabComplete( results.toArray( new String[ results.size() ] ) ) );
|
||||||
throw new CancelSendSignal();
|
throw new CancelSendSignal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(PacketCCSettings settings) throws Exception
|
public void handle(PacketCCSettings settings) throws Exception
|
||||||
|
Loading…
Reference in New Issue
Block a user