mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-28 05:05:21 +01:00
Add current server check to failed listener too
This commit is contained in:
parent
3a3fb27d9a
commit
acbf6d3137
@ -143,7 +143,7 @@ public final class UserConnection implements ProxiedPlayer
|
|||||||
{
|
{
|
||||||
future.channel().close();
|
future.channel().close();
|
||||||
ServerInfo def = ProxyServer.getInstance().getServers().get( getPendingConnection().getListener().getDefaultServer() );
|
ServerInfo def = ProxyServer.getInstance().getServers().get( getPendingConnection().getListener().getDefaultServer() );
|
||||||
if ( retry && !target.equals( def ) )
|
if ( retry & target != def && def != getServer().getInfo() )
|
||||||
{
|
{
|
||||||
sendMessage( ChatColor.RED + "Could not connect to target server, you have been moved to the default server" );
|
sendMessage( ChatColor.RED + "Could not connect to target server, you have been moved to the default server" );
|
||||||
connect( def, false );
|
connect( def, false );
|
||||||
|
Loading…
Reference in New Issue
Block a user