From 63ac62ec8abe30f0d6dd2cfe0ddaab291c36893f Mon Sep 17 00:00:00 2001 From: red-001 Date: Sat, 1 Apr 2017 12:40:56 +0100 Subject: [CSM] Add function and chat command to disconnect from server. (#5487) --- doc/client_lua_api.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index d5ccef5d3..deb5bfb13 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -698,6 +698,9 @@ Call these functions only at load time! ### Client Environment * `minetest.get_player_names()` * Returns list of player names on server +* `minetest.disconnect()` + * Disconnect from the server and exit to main menu. + * Returns `false` if the client is already disconnecting otherwise returns `true`. ### Misc. * `minetest.parse_json(string[, nullvalue])`: returns something -- cgit v1.2.3