Skip to content

Commit

Permalink
fix(server): server/terminate with player_uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
JM-Lemmi committed Mar 14, 2024
1 parent f40a9c9 commit ee77ab5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions json_schema/client_to_server.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,23 @@
},
"required": [ "player_uuid", "message"]
}
},
{
"if": {
"properties": {
"message_type": { "const": "server/terminate" }
}
},
"then": {
"properties": {
"player_uuid": {
"description": "The uuid of the player who sent the message",
"type": "string",
"format": "uuid"
}
},
"required": [ "player_uuid" ]
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"message_type": "server/terminate",
"player_uuid": "123e4567-e89b-12d3-a456-426614174000"
}

0 comments on commit ee77ab5

Please sign in to comment.