Velocity doesn't seem to forward server address to backend servers?
ThrowerWay opened this issue · comments
ThrowerWay commented
@EventHandler
public void onPlayerHandshake(PlayerHandshakeEvent event) {
if (event.getServerHostname() != null) {
hostNames.put(event.getUniqueId(), event.getServerHostname().toLowerCase().replace(" ", ""));
}
}
This code worked on bungee but doesn't on velocity, I have modern forwarding enabled and paper backend
Shane Freeder commented
the forwarding mechansim is irrelevant
for RegisteredServer#ping(), we pass through the hostname as defined in the servers list, for an actual player, we try to pass through the players vhost that they sent us (else, we fall back to the registered server info if we don't have that)