From 73adeef2e14985546cdb9db94f09b1df3e9b4102 Mon Sep 17 00:00:00 2001 From: Elkien3 Date: Thu, 19 Oct 2017 08:35:35 -0500 Subject: [PATCH] Add a crashserver command only for people with server priv --- mods/playertools/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mods/playertools/init.lua b/mods/playertools/init.lua index 574820c..12486a4 100644 --- a/mods/playertools/init.lua +++ b/mods/playertools/init.lua @@ -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.",