diff options
author | Diego Martinez <kaeza@users.sf.net> | 2016-01-04 22:49:11 -0300 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-06-11 04:17:04 +0100 |
commit | dac40af6eeeb7205d507046fd4d9ae06ae182095 (patch) | |
tree | d8e968e144ef19f184cb3180f304bffbd143dbc1 /doc | |
parent | b24d21d1ae25c377e14223ee20d9de9158fe916c (diff) | |
download | minetest-dac40af6eeeb7205d507046fd4d9ae06ae182095.tar.gz minetest-dac40af6eeeb7205d507046fd4d9ae06ae182095.tar.bz2 minetest-dac40af6eeeb7205d507046fd4d9ae06ae182095.zip |
Server: Add reason for leave to `on_leaveplayer` callbacks
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index ea47d0044..d89b0bf7b 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1912,8 +1912,9 @@ Call these functions only at load time! * If it returns a string, the player is disconnected with that string as reason * `minetest.register_on_joinplayer(func(ObjectRef))` * Called when a player joins the game -* `minetest.register_on_leaveplayer(func(ObjectRef))` +* `minetest.register_on_leaveplayer(func(ObjectRef, timed_out))` * Called when a player leaves the game + * `timed_out`: True for timeout, false for other reasons. * `minetest.register_on_cheat(func(ObjectRef, cheat))` * Called when a player cheats * `cheat`: `{type=<cheat_type>}`, where `<cheat_type>` is one of: |