Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Velocity doesn't seem to forward server address to backend servers? #1311

Open
ghost opened this issue May 3, 2024 · 1 comment
Open

Velocity doesn't seem to forward server address to backend servers? #1311

ghost opened this issue May 3, 2024 · 1 comment

Comments

@ghost
Copy link

ghost commented May 3, 2024

 @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
@electronicboy
Copy link
Member

electronicboy commented May 3, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant