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 using arbitrary json as the status packet #820

Merged
merged 3 commits into from
Jun 16, 2024

Conversation

AlexProgrammerDE
Copy link
Contributor

@AlexProgrammerDE AlexProgrammerDE commented May 22, 2024

I'd prefer using any arbitrary jsonobject as the status packet payload to support third-party modloader fields.
The implementation keeps support for the typed json data, but allows the user to additionally provide any json object they want.
I don't think this is outside of the scope of the project as this could allow people building a MCPL client (like me) to detect if a server to connect to is a forge server to enable different logic/prevent joining due to different protocol.
my current workaround is registering my own status data packet, which is a thing i wanna stop doing

Copy link
Member

@Konicai Konicai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@basaigh basaigh merged commit 66b326f into GeyserMC:master Jun 16, 2024
1 check passed
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.

4 participants