Add indication to player that area is protected and by whom
This commit is contained in:
parent
fac3bec4cb
commit
85a0154607
1
API.lua
1
API.lua
@ -78,6 +78,7 @@ function minetest.is_protected(node_pos, player_name)
|
|||||||
if owner == player_name then
|
if owner == player_name then
|
||||||
return __blockprotectnodes__.is_protected(node_pos, player_name)
|
return __blockprotectnodes__.is_protected(node_pos, player_name)
|
||||||
else
|
else
|
||||||
|
minetest.chat_send_player(player_name, "This area is owned by "..owner..".")
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user