diff options
author | Robert Zenz <Bobby@bonsaimind.org> | 2015-07-21 21:43:01 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-07-22 05:43:30 +0200 |
commit | 4eacce5e2f89bd6864f9a231488b507ac33e4902 (patch) | |
tree | 2e8c4e830387231cd4d039606e30adc531b30420 /doc/lua_api.txt | |
parent | 8b472fdc05a40ddf80a2f055012fcc8059ba60a3 (diff) | |
download | minetest-4eacce5e2f89bd6864f9a231488b507ac33e4902.tar.gz minetest-4eacce5e2f89bd6864f9a231488b507ac33e4902.tar.bz2 minetest-4eacce5e2f89bd6864f9a231488b507ac33e4902.zip |
Add note that chat messages can be marked as handled.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 318c23a76..b11acb921 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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 |