fix(protection): restore cleared Leaf effects
Release / release (push) Successful in 2m7s
CI / build (push) Successful in 1m1s

This commit is contained in:
dmg
2026-08-10 23:09:54 -04:00
parent 5609a0a656
commit 320c8ce193
9 changed files with 110 additions and 4 deletions
@@ -21,6 +21,8 @@ As a **server operator**, I want Leaf settings and player state to be validated
- [x] Invalid required configuration prevents partial plugin initialization and produces a clear server log message.
- [x] Corrupt or invalid player records are handled defensively and cannot silently grant protection or privileges.
- [x] Removing Leaf-managed Resistance or Strength does not remove a distinct corresponding effect that Leaf does not own when the API provides enough information to distinguish it.
- [x] A temporary external Resistance or Strength effect is preserved instead of overwritten, and Leaf restores its configured effect after the external effect ends.
- [x] The leaf prefix remains visible while an external effect temporarily replaces a Leaf-managed effect.
- [x] Unknown forward-compatible configuration and player-state fields are preserved where practical.
## Related