1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-05 00:45:05 -05:00

Add note that chat messages can be marked as handled.

This commit is contained in:
Robert Zenz 2015-07-21 21:43:01 +02:00 committed by est31
parent 8b472fdc05
commit 4eacce5e2f

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