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

@ -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,
})