mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add note that chat messages can be marked as handled.
This commit is contained in:
parent
8b472fdc05
commit
4eacce5e2f
1 changed files with 1 additions and 0 deletions
|
@ -1833,6 +1833,7 @@ Call these functions only at load time!
|
|||
* `dug_too_fast`
|
||||
* `minetest.register_on_chat_message(func(name, message))`
|
||||
* Called always when a player says something
|
||||
* Return `true` to mark the message as handled, which means that it will not be sent to other players
|
||||
* `minetest.register_on_player_receive_fields(func(player, formname, fields))`
|
||||
* Called when a button is pressed in player's inventory form
|
||||
* Newest functions are called first
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue