fix(protection): restore cleared Leaf effects
This commit is contained in:
@@ -95,3 +95,11 @@
|
||||
- Opt-out, combat, administrative disablement, and global disablement remove both Leaf-managed effects while conservatively preserving distinct external effects.
|
||||
- Minecraft calculates the initiating PvP hit before Leaf can process the damage event, so that first hit can include the configured Strength bonus before automatic opt-out.
|
||||
- Verified settings, runtime reconciliation, status, combat cleanup, persistence, command compatibility, autocomplete, and the complete build with `./gradlew clean check jar`.
|
||||
|
||||
### Automatic effect recovery added
|
||||
|
||||
- Leaf now reconciles opted-in online players every 20 ticks so death, milk, commands, and plugins cannot permanently clear configured protection.
|
||||
- Recovery remains disabled for opted-out players and while Leaf is globally disabled.
|
||||
- A temporary external Resistance or Strength effect is preserved instead of overwritten; the leaf prefix remains visible and Leaf restores its configured effect after the external effect ends.
|
||||
- Added regression coverage for the one-second recovery task and eligibility-aware online-player reconciliation.
|
||||
- Verified the complete build with `./gradlew clean check jar`.
|
||||
|
||||
Reference in New Issue
Block a user