mirror of
https://github.com/minetest/minetest_game.git
synced 2025-01-08 22:50:16 +01:00
This commit is contained in:
parent
b62713f0db
commit
5b35ea553e
@ -11,6 +11,10 @@ local min_inv_size = 4 * 8 -- display and provide at least this many slots
|
|||||||
|
|
||||||
bones = {}
|
bones = {}
|
||||||
|
|
||||||
|
local function TRANSLATEMEPLEASE(s)
|
||||||
|
return s
|
||||||
|
end
|
||||||
|
|
||||||
local function is_owner(pos, name)
|
local function is_owner(pos, name)
|
||||||
local owner = minetest.get_meta(pos):get_string("owner")
|
local owner = minetest.get_meta(pos):get_string("owner")
|
||||||
if owner == "" or owner == name or minetest.check_player_privs(name, "protection_bypass") then
|
if owner == "" or owner == name or minetest.check_player_privs(name, "protection_bypass") then
|
||||||
@ -323,18 +327,18 @@ minetest.register_on_dieplayer(function(player)
|
|||||||
if bones_placed then
|
if bones_placed then
|
||||||
if drop_bones then
|
if drop_bones then
|
||||||
log_message = "Inventory partially dropped"
|
log_message = "Inventory partially dropped"
|
||||||
chat_message = "@1 died at @2, and partially dropped their inventory."
|
chat_message = TRANSLATEMEPLEASE("@1 died at @2, and partially dropped their inventory.")
|
||||||
else
|
else
|
||||||
log_message = "Bones placed"
|
log_message = "Bones placed"
|
||||||
chat_message = "@1 died at @2, and bones were placed."
|
chat_message = TRANSLATEMEPLEASE("@1 died at @2, and bones were placed.")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if drop_bones then
|
if drop_bones then
|
||||||
log_message = "Inventory dropped"
|
log_message = "Inventory dropped"
|
||||||
chat_message = "@1 died at @2, and dropped their inventory."
|
chat_message = TRANSLATEMEPLEASE("@1 died at @2, and dropped their inventory.")
|
||||||
else
|
else
|
||||||
log_message = "No bones placed"
|
log_message = "No bones placed"
|
||||||
chat_message = "@1 died at @2."
|
chat_message = TRANSLATEMEPLEASE("@1 died at @2.")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user