mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
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