diff options
author | Vincent Glize <vincentglize@hotmail.fr> | 2017-04-08 08:20:30 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-08 08:20:30 +0200 |
commit | f73534640a18709921519ee43110292cf658e67f (patch) | |
tree | 3a318762bb4768e4826ae216c1aa6e5ab026a437 /doc | |
parent | ff4fef570e8df6ce44ceb1d9071f860474eb1f95 (diff) | |
download | minetest-f73534640a18709921519ee43110292cf658e67f.tar.gz minetest-f73534640a18709921519ee43110292cf658e67f.tar.bz2 minetest-f73534640a18709921519ee43110292cf658e67f.zip |
[CSM] Add event on_connect player API lua (#5540)
* Add event on_connect player API lua
Diffstat (limited to 'doc')
-rw-r--r-- | doc/client_lua_api.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index 6d62de8a2..d68f90dec 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -639,6 +639,8 @@ Call these functions only at load time! * **Warning**: If the client terminates abnormally (i.e. crashes), the registered callbacks **will likely not be run**. Data should be saved at semi-frequent intervals as well as on server shutdown. +* `minetest.register_on_connect(func())` + * Called at the end of client connection (when player is loaded onto map) * `minetest.register_on_receiving_chat_message(func(name, message))` * Called always when a client receive a message * Return `true` to mark the message as handled, which means that it will not be shown to chat |