aboutsummaryrefslogtreecommitdiff
path: root/clientmods/preview
diff options
context:
space:
mode:
Diffstat (limited to 'clientmods/preview')
-rw-r--r--clientmods/preview/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index c57a62155..07464e927 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -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,
+})