Return from method when we can't connect
This commit is contained in:
parent
a00c91c03a
commit
a57ae83d62
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user