Add a checkbox to the owner formspec allowing a toggle for enabling PvP within the protected area. ### Protector: - [x] When PvP is enabled, the owner of the protected area must be vulnerable to damage - [x] When PvP is enabled, disable node interaction (digging/placing) for anyone inside the protected radius, including the owner and members. - [x] Placer tool does not transfer the checkbox state when crouch is pressed while using the placer. - [x] Existing bug fixed: using the placer tool doesn't transfer the 'allow factions' state - [x] Register `protector:protect_hidden` which can be toggled via command `/protector_view [hide|block|logo]` with registered alias `/pb`. ### Bones: - [x] Change bones placement condition from `if not protected from this player` to `if not protected` ### Bonespos: - [x] Ensure positions are saved only on successful bones placement. # QA/Testing: - [x] Protector owner can enable pvp - [x] PvP State does not transfer using placer while shift/crouch - [x] Protector owner cannot place or dig within the protected area when PvP is enabled - [x] Owner of PvP-enabled protected area can take damage - [x] Neither owner nor guests drop bones while inside protected area, regardless of meta states (faction/pvp) - [x] Faction members can still access nodes inside a faction-shared protected area - [x] Faction-shared state transfers when placer tool is used while holding shift/crouch - [x] Confirm members also transfer - [x] Confirm /bones command is not over-written if player dies without dropping bones after a bonespos was recorded
Add a checkbox to the owner formspec allowing a toggle for enabling PvP within the protected area.
Protector:
protector:protect_hiddenwhich can be toggled via command/protector_view [hide|block|logo]with registered alias/pb.Bones:
if not protected from this playertoif not protectedBonespos:
QA/Testing: