Return from method when we can't connect

This commit is contained in:
md_5 2013-04-13 09:46:21 +10:00
parent a00c91c03a
commit a57ae83d62

View File

@ -119,7 +119,9 @@ public final class UserConnection implements ProxiedPlayer
if ( getServer() != null && Objects.equals( getServer().getInfo(), target ) )
{
sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" );
return;
}
new Bootstrap()
.channel( NioSocketChannel.class )
.group( BungeeCord.getInstance().eventLoops )