Add retrieveCookie
to the AsyncPlayerPreLoginEvent
(or any other way to query cookies during the login phase)
#11734
MrPowerGamerBR
started this conversation in
Ideas
Replies: 1 comment
-
Events are just POJOs; to do this, you'd need to block the event, which would, in turn, stall up a thread. This needs new API to properly handle this phasing, and ideally a proper system for this akin to what mojang does with their tasks for configuration, rather than just making people block arbitrary events, if we wanted to support that, we'd need to support continuations or something |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem?
Currently you can't get cookies without a player instance, even tho you are able to get cookies during the login phase.
If you add a
this.sendPacket(new ClientboundCookieRequestPacket(ResourceLocation.parse("...")));
to thecallPlayerPreLoginEvents
and check if the payload is present on thehandleCookieResponse
, you can see that the client does send the cookie response and it does send it with the payload.Describe the solution you'd like.
Add
retrieveCookie
to theAsyncPlayerPreLoginEvent
. (or another API that allows to query the player's cookies)Describe alternatives you've considered.
Using a proxy /j
Other
No response
Beta Was this translation helpful? Give feedback.
All reactions