Properly tab complete

This commit is contained in:
md_5 2013-09-15 14:04:51 +10:00
parent 33f654ce6f
commit 9538dcf4d4

View File

@ -98,7 +98,7 @@ public class UpstreamBridge extends PacketHandler
if ( tabComplete.getCursor().startsWith( "/" ) )
{
List<String> results = new ArrayList<>();
bungee.getPluginManager().dispatchCommand( con, tabComplete.getCursor(), results );
bungee.getPluginManager().dispatchCommand( con, tabComplete.getCursor().substring( 1, tabComplete.getCursor().length() ), results );
con.unsafe().sendPacket( new PacketCBTabComplete( results.toArray( new String[ results.size() ] ) ) );
throw new CancelSendSignal();
}