Fix docs regarding cancellation of player message and command events
Relates to #2137
This commit is contained in:
1 parent
0cc4438abd
commit
4e160d235a
1 file changed
+2
-2
@@ -318,11 +318,11 @@ Triggered when a player sends a disconnect package or is forcefully disconnected
|
||||
### `__on_player_message(player, message)`
|
||||
Triggered when a player sends a chat message.
|
||||
|
||||
This event can be cancelled by returning `'cancel'`, which prevents the message from being sent.
|
||||
|
||||
### `__on_player_command(player, command)`
|
||||
Triggered when a player runs a command. Command value is returned without the / in front.
|
||||
|
||||
This event can be cancelled by returning `'cancel'`, which prevents the message from being sent.
|
||||
|
||||
### `__on_statistic(player, category, event, value)`
|
||||
Triggered when a player statistic changes. Doesn't notify on periodic an rhythmic events, i.e.
|
||||
`time_since_death`, `time_since_rest`, and `played_one_minute` since these are triggered every tick. Event
|
||||
|
||||
Reference in new issue
Block a user