mirror of
https://github.com/minetest/minetest.git
synced 2024-11-04 14:53:45 +01:00
Add note that chat messages can be marked as handled.
This commit is contained in:
parent
8b472fdc05
commit
4eacce5e2f
@ -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…
Reference in New Issue
Block a user