Skip to content

feat: add TNT explosion protection flag and listener for block explos…#32

Draft
TheBjoRedCraft wants to merge 6 commits into
version/26.1from
feat/tnt-creeper-mob-griefing-boats-flags
Draft

feat: add TNT explosion protection flag and listener for block explos…#32
TheBjoRedCraft wants to merge 6 commits into
version/26.1from
feat/tnt-creeper-mob-griefing-boats-flags

Conversation

@TheBjoRedCraft
Copy link
Copy Markdown
Member

…ion events

@TheBjoRedCraft TheBjoRedCraft self-assigned this May 29, 2026
@TheBjoRedCraft TheBjoRedCraft marked this pull request as ready for review May 29, 2026 14:24
Copilot AI review requested due to automatic review settings May 29, 2026 14:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new WorldGuard-backed flag intended to control TNT explosion behavior separately from the plugin’s general explosion-damage protection, and wires a new listener + UI flag entry to expose it.

Changes:

  • Add a custom WorldGuard tnt-explode state flag and register it.
  • Expose the new TNT flag (and add a new MOB_DAMAGE toggle) in the editable protection flags UI.
  • Add and register a ProtectionExplosionListener intended to enforce the TNT behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/main/kotlin/dev/slne/surf/protect/paper/region/flags/ProtectionFlagsRegistry.kt Registers new custom TNT_EXPLODE flag in the plugin’s WorldGuard flag registry.
src/main/kotlin/dev/slne/surf/protect/paper/region/flags/EditableProtectionFlags.kt Updates UI-editable flags: adds MOB_DAMAGE and switches TNT to the new custom flag.
src/main/kotlin/dev/slne/surf/protect/paper/listener/listeners/ProtectionExplosionListener.kt Adds a new listener attempting to enforce TNT explosion rules via WorldGuard regions.
src/main/kotlin/dev/slne/surf/protect/paper/listener/ListenerManager.kt Registers the new explosion listener.
gradle.properties Bumps project version to 3.2.6.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TheBjoRedCraft TheBjoRedCraft marked this pull request as draft May 29, 2026 15:28
@TheBjoRedCraft
Copy link
Copy Markdown
Member Author

geht nicht, warum auch immer werden trotzdem keine blöcke ´zertsört

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.

2 participants