mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-28 05:05:21 +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 ) )
|
if ( getServer() != null && Objects.equals( getServer().getInfo(), target ) )
|
||||||
{
|
{
|
||||||
sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" );
|
sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" );
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
new Bootstrap()
|
new Bootstrap()
|
||||||
.channel( NioSocketChannel.class )
|
.channel( NioSocketChannel.class )
|
||||||
.group( BungeeCord.getInstance().eventLoops )
|
.group( BungeeCord.getInstance().eventLoops )
|
||||||
|
Loading…
Reference in New Issue
Block a user