aestivalserver-mods/illuna_aestival/src/functions.lua

8 lines
369 B
Lua

minetest.register_on_dieplayer(function(player)
local player_name = player:get_player_name()
local pos = vector.round(player:get_pos())
local pos_string = minetest.pos_to_string(pos)
minetest.chat_send_player(player_name, core.colorize("#F6A10A", "You have died at "..minetest.pos_to_string(pos).. ". Go and grab your stuff, before somebody else does! ;-)"))
end)