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

Fix server_data payload for 1.19+, fix kicks messages on 1.20.3+ #1364

Merged

Conversation

extremeheat
Copy link
Member

@extremeheat extremeheat commented Jan 6, 2025

Fixes #1362

Add missing fields to server_data payload for versions 1.19+.

Fix kick messages not using NBT chat on 1.20.3+

Fixes PrismarineJS#1362

Add missing fields to `server_data` payload for versions 1.19+.

* Add `motd` and `icon` fields to `server_data` payload for version 1.19.
* Add `motd`, `icon`, and `enforcesSecureChat` fields to `server_data` payload for version 1.19.2.
* Add `motd`, `icon`, and `enforcesSecureChat` fields to `server_data` payload for version 1.19.3.
* Add `motd`, `iconBytes`, and `enforcesSecureChat` fields to `server_data` payload for versions 1.19.4, 1.20, and 1.20.2.
* Add `motd`, `iconBytes`, and `enforcesSecureChat` fields to `server_data` payload for version 1.20.3.
* Add `motd` and `iconBytes` fields to `server_data` payload for version 1.20.5+.
* Use NBT components for `motd` if `chatPacketsUseNbtComponents` feature is supported.
* Convert `favicon` to buffer for `iconBytes` field if available.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/PrismarineJS/node-minecraft-protocol/issues/1362?shareId=XXXX-XXXX-XXXX-XXXX).
@extremeheat extremeheat changed the title Fix server_data payload sent to clients for versions 1.19+ Fix server_data payload for 1.19+, fix kicks messages on 1.20.3+ Jan 6, 2025
@rom1504 rom1504 merged commit 8e131c3 into PrismarineJS:master Jan 6, 2025
27 checks passed
@rom1504
Copy link
Member

rom1504 commented Jan 6, 2025

/makerelease

@rom1504bot rom1504bot mentioned this pull request Jan 6, 2025
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.

server: server_data payload sent to clients is incomplete
2 participants