diff --git a/mods/MISC/mcl_commands/init.lua b/mods/MISC/mcl_commands/init.lua index b3041ad06e..90ec60b784 100644 --- a/mods/MISC/mcl_commands/init.lua +++ b/mods/MISC/mcl_commands/init.lua @@ -34,6 +34,9 @@ local function handle_clear_command(giver, receiver) end local function handle_kill_command(suspect, victim) + if not minetest.settings:get_bool("damage_enabled") then + return false, S("Players can't be killed right now, damage has been disabled.") + end local victimref = minetest.get_player_by_name(victim) if victimref == nil then return false, S("Player @1 does not exist.", victim)