Accept Code Of Conduct
Configuration 0x09, client → server.
config · 0x09 · serverbound (client → server)
Sent by the client after the player accepts the server’s code of conduct shown via CodeOfConduct. The server waits for it before continuing configuration; if the player declines, the client disconnects instead.
Sent by the client, read by the server. Listen for it with client.on("AcceptCodeOfConduct", (data) => …) on the receiving side.
Fields
No fields.
Send it
// Client side, after the player accepts CodeOfConduct.
await client.sendPacket("AcceptCodeOfConduct");
This packet has no fields. Send it only after displaying the server’s CodeOfConduct contents and receiving explicit acceptance from the player.
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/config/serverbound/AcceptCodeOfConduct.ts