CONTENT CONTRACT · VERSION 1
notify
Show one localized text key to the permitted player after commit.
Signature
{ kind: "notify", player: PlayerRef, text: TextKey }Fields
| Name | Type | Meaning |
|---|---|---|
kind | "notify" | Discriminant |
player | PlayerRef | Player instance whose state or inventory the invocation may access. Length: 1…256; Pattern: ^[\s\S]+$ |
text | TextKey | Localized text key resolved by the receiving player's locale. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
Validated example
{
"kind": "notify",
"player": "p1",
"text": "core:first_aid_complete"
}