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
|
@ -127,3 +127,10 @@ core.register_chatcommand("list_players", {
|
|||
core.display_chat_message(dump(core.get_player_names()))
|
||||
end
|
||||
})
|
||||
|
||||
core.register_chatcommand("disconnect", {
|
||||
description = "Exit to main menu",
|
||||
func = function(param)
|
||||
core.disconnect()
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue