-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Handle LoginPayloadResponse in UpstreamBridge #3758
Conversation
also change a little check for loginpayloads it should only be possible to use this method while in login phase.
in my case i try to use the sendData method of the pendingConnection in the post login event for latest client version, it should work as the connection is in login state. But the LoginPayloadResponse is handled in the upstream bridge, thats why it doesnt work |
But the PostLoginEvent has a UserConnection not a PendingConnection? |
Yeah but i get the pending connection of the userconnection |
Why? |
Because i want to make use of the loginpayload api Everything should work but the packet handler for the loginpayload response is only in the initial handler, so i need to move the code down or impl it in the upstreambridge to fallback to the initialhandler Which might be better |
SpigotMC#3758: Handle LoginPayloadResponse in UpstreamBridge
Required for #3758 to function correctly.
…dHandle Required for SpigotMC#3758 to function correctly.
also change a little check for loginpayloads sendData method
it should only be possible to use this method while in login phase.
I moved the setHandler down because if in the PostLoginEvent a method is invoked that utilizeses login api. the packets will be handled in the UpstreamBridge and not in the initial handler, so the api will not function as expected