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);
|
InetSocketAddress def = BungeeCord.instance.config.getServer(null);
|
||||||
if (retry && !address.equals(def))
|
if (retry && !address.equals(def))
|
||||||
{
|
{
|
||||||
return connect(user, name, def, handshake, false);
|
return connect(user, BungeeCord.instance.config.defaultServerName, def, handshake, false);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
throw new RuntimeException("Could not connect to target server " + Util.exception(ex));
|
throw new RuntimeException("Could not connect to target server " + Util.exception(ex));
|
||||||
|
Loading…
Reference in New Issue
Block a user