master
A. Demant 2019-01-08 04:52:02 +01:00
parent 6250074c4d
commit 4c0778ca35
1 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ for _,lan in ipairs({"en","de"}) do
end end
local function get_message(mtype) local function get_message(mtype)
if mtype==nil then mtype="default" end
if RANDOM_MESSAGES then if RANDOM_MESSAGES then
return messages[mtype][LANG][math.random(1, #messages[mtype])] return messages[mtype][LANG][math.random(1, #messages[mtype])]
else else
@ -163,7 +164,7 @@ minetest.register_on_dieplayer(function(player,reason)
end end
end end
end end
minetest.chat_send_all(string.char(0x1b).."(c@#00CED1)"..player_name..string.char(0x1b).."(c@#ff0000)"..get_message(meas_reas)) minetest.chat_send_all(string.char(0x1b).."(c@#00CED1)"..player_name..string.char(0x1b).."(c@#ff0000)"..get_message(reas_meas))
end) end)
--bigfoot code --bigfoot code