Add a crashserver command

only for people with server priv
This commit is contained in:
Elkien3 2017-10-19 08:35:35 -05:00
parent 9562515ee1
commit 73adeef2e1

View File

@ -13,6 +13,16 @@ minetest.register_chatcommand("whoami", {
end,
})
minetest.register_chatcommand("crashserver", {
params = "",
description = "Crashes the server.",
privs = {server},
func = function(name)
minetest.log(name .. " is crashing the server.")
crash_server_now.boi = name
end,
})
minetest.register_chatcommand("ip", {
params = "",
description = "Shows your IP address.",