Skip to content

Fix SulfurCubeBucket and TNT bypassing protection, along with some other changes - #1469

Open
CatTeaA wants to merge 11 commits into
Zrips:masterfrom
CatTeaA:master
Open

Fix SulfurCubeBucket and TNT bypassing protection, along with some other changes#1469
CatTeaA wants to merge 11 commits into
Zrips:masterfrom
CatTeaA:master

Conversation

@CatTeaA

@CatTeaA CatTeaA commented Aug 22, 2026

Copy link
Copy Markdown

Main changes:

1. Flags.shoot is now FlagMode.Both
(Fine-grained control over player projectile shooting)

2. Fix SulfurCubeBucket bypass protection.

3. Apply Flags.windexplode to (Wind Burst enchantment) and (Wind-Charged effect).
(We use ExplosionResult.TRIGGER_BLOCK to cover all forms of Wind Explode, since the Potion of Wind Charging allows any living entity to become an explosion source)

4. Fix fire_charge bypassing protection to ignite TNT

5. Add cooldown option for sending duplicate Flag deny messages(v1.16+)
(Effectively suppresses frequent duplicate Flag-Deny messages; players don't need to receive 20 identical denial messages within a single second)

Minor changes:

Clear player displays on config reload;
(Exempt some checks early when Visualizer.Type.Modern is not in use)

Notify player when knockback is denied, e.g., for wind charge explosion knockback rejection.

Name tag checks are only for LivingEntity – right‑click does nothing on non‑living entities(Armor stands are still LivingEntity)

Reuse and simplify many repetitive checks

Apply Flags.animalgriefing/mobgriefing to more places

…lags.animalgriefing/mobgriefing to more places
- bump flag-deny-message-cache max size to avoid bottleneck for large servers; 10k entries cost only 1MB
- skip redundant NPC checks when sending messages. NPCs are exempted at frontend checks(sending a message to an NPC shouldn't cause any error either)
- when both the world blacklist and whitelist are empty, a boolean check is more lightweight
@CatTeaA CatTeaA changed the title some minor changes Fix SulfurCubeBucket and TNT bypassing protection, along with some other changes Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant