From 4c9be808a7222e82e04c24d927150664773ad5be Mon Sep 17 00:00:00 2001 From: cx384 Date: Sat, 8 Jun 2024 12:37:22 +0200 Subject: [PATCH] Improve register_on_leaveplayer documentation --- doc/lua_api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/lua_api.md b/doc/lua_api.md index fde2e726f..b1412ca85 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -5796,6 +5796,7 @@ Call these functions only at load time! * `last_login`: The timestamp of the previous login, or nil if player is new * `minetest.register_on_leaveplayer(function(ObjectRef, timed_out))` * Called when a player leaves the game + * Does not get executed for connected players on shutdown. * `timed_out`: True for timeout, false for other reasons. * `minetest.register_on_authplayer(function(name, ip, is_success))` * Called when a client attempts to log into an account.