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 sent to clients for versions 1.19+ #1363

Closed
wants to merge 2 commits into from

Conversation

extremeheat
Copy link
Member

@extremeheat extremeheat commented Jan 6, 2025

Fixes #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.

Fixes #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
Copy link
Member Author

Reopening out of copilot workspace

@extremeheat extremeheat closed this Jan 6, 2025
@extremeheat extremeheat deleted the extremeheat/fix-server-data-payload branch January 6, 2025 01:00
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
1 participant