Add a crashserver command
only for people with server priv
This commit is contained in:
parent
9562515ee1
commit
73adeef2e1
@ -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.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user