← Back to Index
SetPlayerGameTypePacket (62)
Set Player Game Type
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.
| Field Name |
Type |
Field Index |
Description |
| Player Game Type (Required) |
varint32 |
0 |
|
Enum Values:
| Index |
Value |
| 0 |
Undefined |
| 1 |
Survival |
| 2 |
Creative |
| 3 |
Adventure |
| 4 |
Default |
| 5 |
Spectator |
| 6 |
WorldDefault |
|