Packet 151
UpdatePlayerGameTypePacket
The server will send this back to all clients on receipt of the SetPlayerGameTypePacket so that cached game type and permissions flags in mLevel on all clients is kept up to date.
HeaderID 151varuint
0Player Game Typevarint32 · variable (up to 5 bytes)
1Target playerActorUniqueID · variable
2TickPlayerInputTick · variable
Serialized fields
3 top-level fields1Target playerActorUniqueID
- 0Actor Unique IDCompression
varint64
2TickMost relevant to supply for transitioning into and out of spectator while in motionPlayerInputTick
- 0Input tickIn server authoritative movement mode the client supplies this in PlayerAuthInputPacket. For any client-bound packets containing a tick, the server should supply the tick value corresponding to the most recently processed PlayerAuthInputPacket. This allows the client to adjust any client predictions made while the packet was in flight. If the packet is being sent to the client but not relating to data of the player or a client-predicted vehicle, it can be zero. It is also acceptable to specify zero for players, although this may lead to minor visual flickers and less smooth application of CorrectPlayerMovePredictionPacket.Compression
varuint64
Changelog
Stable releases
Changes between stable protocol releases.
No stable release changes are recorded for this packet.
All builds
Changes between consecutive stable releases and preview builds.
- Released
- Protocol
- 2207
- Previous build
- 1.26.51
Packet
1 entryChanged 1
- Changed supporting type
GameType: Changed enum valueUndefinedfrom0to-1. - Changed supporting type
GameType: Changed enum valueSurvivalfrom1to0. - Changed supporting type
GameType: Changed enum valueCreativefrom2to1. - Changed supporting type
GameType: Changed enum valueAdventurefrom3to2. - Changed supporting type
GameType: Changed enum valueDefaultfrom4to5. - Changed supporting type
GameType: Changed enum valueSpectatorfrom5to6. - Changed supporting type
GameType: Changed enum valueWorldDefaultfrom6to0.