kingdoms_game/mods/knockout/overrides.lua
Elkien3 4964c44ec3 add knockout
removed the knockout bat, at least for the time being
2018-07-27 10:04:21 -05:00

12 lines
314 B
Lua

-- No, you don't get to kill yourself
local oldKill = minetest.registered_chatcommands["killme"].func
minetest.override_chatcommand("killme", {
func = function(name, param)
if knockout.knocked_out[name] == nil then
return oldKill(name, param)
else
return false, "You can't kill yourself!"
end
end
})