1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

[CSM] Add function and chat command to disconnect from server. (#5487)

This commit is contained in:
red-001 2017-04-01 12:40:56 +01:00 committed by Loïc Blot
parent 813a9a36b2
commit 63ac62ec8a
6 changed files with 37 additions and 5 deletions

View file

@ -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