Skip to content

Commit

Permalink
Add command for test server reboot with rejoin.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfence committed Mar 29, 2024
1 parent 2c2fbfe commit 3ac47e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions games/devtest/mods/util_commands/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,11 @@ core.register_chatcommand("set_saturation", {
minetest.get_player_by_name(player_name):set_lighting({saturation = saturation })
end
})

core.register_chatcommand("reboot_with_rejoin", {
params = "",
description = "Imidiately reboot server with reconnect request.",
func = function(player_name, param)
minetest.request_shutdown("Rebooting with reconnect.", true, 5)
end
})

0 comments on commit 3ac47e2

Please sign in to comment.