Server Data
Play 0x56, server → client.
play · 0x56 · clientbound (server → client)
Sends the server’s MOTD and optional icon for display in the pause menu. The server sends it after login and when the data changes. The client shows it and caches the icon.
Sent by the server, read by the client. Listen for it with client.on("ServerData", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
motd |
NBT | |
iconBytes |
Optional |
Send it
await client.sendPacket("ServerData", {
motd: /* NBT */,
iconBytes: /* Optional */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/clientbound/ServerData.ts