mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-24 17:47:41 +01:00
Quick hotfix for when server is down
This commit is contained in:
parent
3d45f52518
commit
68c8915a04
@ -94,7 +94,7 @@ public class ServerConnection extends GenericConnection
|
||||
InetSocketAddress def = BungeeCord.instance.config.getServer(null);
|
||||
if (retry && !address.equals(def))
|
||||
{
|
||||
return connect(user, name, def, handshake, false);
|
||||
return connect(user, BungeeCord.instance.config.defaultServerName, def, handshake, false);
|
||||
} else
|
||||
{
|
||||
throw new RuntimeException("Could not connect to target server " + Util.exception(ex));
|
||||
|
Loading…
Reference in New Issue
Block a user