From 56618fda34aecd2bf86ee259389a91721d753312 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Thu, 26 Oct 2023 10:10:33 -0700 Subject: [PATCH] Fix players being able to use /clearinv --- mods/mtg/ctf_changes/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/mtg/ctf_changes/init.lua b/mods/mtg/ctf_changes/init.lua index 9f3f8a4e84..deda3178f5 100644 --- a/mods/mtg/ctf_changes/init.lua +++ b/mods/mtg/ctf_changes/init.lua @@ -17,6 +17,10 @@ for from, to in pairs(disabled_ores) do minetest.register_alias_force(from, to) end +minetest.override_chatcommand("clearinv", { + privs = {server = true}, +}) + minetest.register_on_mods_loaded(function() -- Remove Unneeded ABMs