mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-09-15 11:25:18 +02:00
Tradotti i messaggi
This commit is contained in:
@@ -17,23 +17,23 @@ function moreblocks.node_is_owned(pos, placer)
|
|||||||
elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version
|
elseif type(GetNodeOwnerName) == "function" then -- ...is a recent version
|
||||||
ownername = GetNodeOwnerName(pos)
|
ownername = GetNodeOwnerName(pos)
|
||||||
else
|
else
|
||||||
ownername = S("someone")
|
ownername = S("qualcun*")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif type(isprotect)=="function" then -- glomie's protection mod
|
elseif type(isprotect)=="function" then -- glomie's protection mod
|
||||||
if not isprotect(5, pos, placer) then
|
if not isprotect(5, pos, placer) then
|
||||||
ownername = S("someone")
|
ownername = S("qualcun*")
|
||||||
end
|
end
|
||||||
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
|
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
|
||||||
if not protector.can_dig(5, pos, placer) then
|
if not protector.can_dig(5, pos, placer) then
|
||||||
ownername = S("someone")
|
ownername = S("qualcun*")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if ownername ~= false then
|
if ownername ~= false then
|
||||||
minetest.chat_send_player( placer:get_player_name(), S("Sorry, %s owns that spot."):format(ownername) )
|
minetest.chat_send_player( placer:get_player_name(), S("Spiacente, quel posto è di %s."):format(ownername) )
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user