aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-04-01 12:40:56 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-01 13:40:56 +0200
commit63ac62ec8abe30f0d6dd2cfe0ddaab291c36893f (patch)
tree76707d22d37fc2fd29e5c5326f3848780599eb36 /doc
parent813a9a36b22a4e2d7383622311b6f52e31a94733 (diff)
downloadminetest-63ac62ec8abe30f0d6dd2cfe0ddaab291c36893f.tar.gz
minetest-63ac62ec8abe30f0d6dd2cfe0ddaab291c36893f.tar.bz2
minetest-63ac62ec8abe30f0d6dd2cfe0ddaab291c36893f.zip
[CSM] Add function and chat command to disconnect from server. (#5487)
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.md3
1 files changed, 3 insertions, 0 deletions
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