← Packet index

Packet 62

SetPlayerGameTypePacket

The client handles the change of the UI element (the gametype dropdown, although this can be avoided by changing via command or on the server), then the client sends a packet to the server, then the server changes the player's gametype and sends a packet back (UpdatePlayerGameTypePacket) to make sure it matches on the client.

Packet datagramWire order
HeaderID 62varuint
0Player Game Typevarint32 · variable (up to 5 bytes)

Serialized fields

1 top-level fields
  1. 0Player Game TypeCompressionEnum-as-ValueGameTypeas varint32
    1. 0Undefined
    2. 1Survival
    3. 2Creative
    4. 3Adventure
    5. 4Default
    6. 5Spectator
    7. 6WorldDefault

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.