From b0c8c64bbe0530a6323490c0747878c4c6b4ec2d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 13 Dec 2017 19:42:30 +0100 Subject: [PATCH] Add proper error msg when using kill w/o dmg --- mods/MISC/mcl_commands/init.lua | 3 +++ 1 file changed, 3 insertions(+) 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)