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

Allow responding to cookie requests #1453

Open
wants to merge 4 commits into
base: dev/3.0.0
Choose a base branch
from

Conversation

masmc05
Copy link

@masmc05 masmc05 commented Oct 28, 2024

Currently, if a server is awaiting the cookie response, it is impossible to block the request without forcing the server to wait indefinably, as https://jd.papermc.io/velocity/3.4.0/com/velocitypowered/api/event/player/CookieRequestEvent.ForwardResult.html#handled() just discards any requests without sending any responses and there is no api to manually send a response.

The current approach is similar to https://jd.papermc.io/velocity/3.4.0/com/velocitypowered/api/event/player/ServerLoginPluginMessageEvent.html, but if you consider that instead of this, it would be better to add a method in https://jd.papermc.io/velocity/3.4.0/com/velocitypowered/api/proxy/ServerConnection.html to send a response then I would change it

@electronicboy
Copy link
Member

Need to update the toString inside of the event

@masmc05 masmc05 marked this pull request as ready for review November 24, 2024 14:03
@masmc05
Copy link
Author

masmc05 commented Nov 24, 2024

Applied the requested changes

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

Successfully merging this pull request may close these issues.

3 participants