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:
parent
813a9a36b2
commit
63ac62ec8a
6 changed files with 37 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue