Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Client Command

Play 0x0C, client → server.

play · 0x0C · serverbound (client → server)

Client status action. actionId 0 requests respawn after death (or after the end poem); 1 requests the statistics window. The server responds with Respawn or AwardStats respectively.

Sent by the client, read by the server. Listen for it with client.on("ClientCommand", (data) => …) on the receiving side.

Fields

Field Type Notes
actionId VarInt

Send it

await client.sendPacket("ClientCommand", {
  actionId: /* VarInt */,
});

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: src/Core/Versions/776/Packets/play/serverbound/ClientCommand.ts

Was this page helpful?