Open Sir-Will opened 2 years ago
Using the following function in bungeecord AbstractReconnectHandler.getForcedHost(connection); always returns the hub and not the actual forced host.
AbstractReconnectHandler.getForcedHost(connection);
Example:
@EventHandler public void onProxyPing(ProxyPingEvent event) { PendingConnection connection = event.getConnection(); ServerInfo forcedHost = AbstractReconnectHandler.getForcedHost(connection); }
Using the following function in bungeecord
AbstractReconnectHandler.getForcedHost(connection);
always returns the hub and not the actual forced host.Example: