Report protection violation w/ rope

This commit is contained in:
Wuzzy 2023-06-30 15:04:05 +02:00
parent 93e5c3c19d
commit 21d10bc945

View File

@ -69,6 +69,8 @@ xdecor.register("rope", {
if not minetest.is_protected(pos, player_name) or if not minetest.is_protected(pos, player_name) or
minetest.get_player_privs(player_name).protection_bypass then minetest.get_player_privs(player_name).protection_bypass then
rope.remove(pos, node, puncher, "xdecor:rope") rope.remove(pos, node, puncher, "xdecor:rope")
else
minetest.record_protection_violation(pos, player_name)
end end
end, end,
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),