Add note that chat messages can be marked as handled.

master
Robert Zenz 2015-07-21 21:43:01 +02:00 committed by est31
parent 8b472fdc05
commit 4eacce5e2f
1 changed files with 1 additions and 0 deletions

View File

@ -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