[CSM] Add function and chat command to disconnect from server. (#5487)
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
Reference in New Issue
Block a user