1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-11-06 15:55:09 +00:00
Files
bedrock-protocol-docs/json/SimpleEventPacket.json

46 lines
1.6 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "3601495873",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"4070427492": {
"title": "SimpleEventPacketPayload",
"type": "object",
"properties": {
"Type": {
"title": "Subtype",
"type": "string",
"enum": [
"UninitializedSubtype",
"EnableCommands",
"DisableCommands",
"UnlockWorldTemplateSettings"
],
"x-underlying-type": "uint16",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 0
}
},
"required": [
"Type"
]
}
},
"title": "SimpleEventPacket",
"description": "This packet is used for enabling/disabling commands and for unlocking world template settings (both unlocking UI buttons on client and the actual setting on the server).",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/4070427492",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 64,
"[cereal:packet_details]": "This is fired from the client to the server and a SetCommandsEnabledPacket is sent back when enabling commands."
}
}