Notify player with the location of their dropped bones

Also, log the action so you (or the server owner) can find the bones even if you weren't looking at the chat at the time.
This commit is contained in:
Craig Davison 2015-01-17 20:22:37 +00:00
parent 03c00a831d
commit f90a128f6c

View file

@ -181,6 +181,9 @@ minetest.register_on_dieplayer(function(player)
end
minetest.set_node(pos, {name="bones:bones", param2=param2})
minetest.chat_send_player(player_name, "Your bones were left at "..minetest.pos_to_string(pos))
minetest.log("action", player_name.." left their bones at "..minetest.pos_to_string(pos))
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()