Skip to content

Respect antigriefing plugins#12

Open
Firemoon777 wants to merge 1 commit into
Mrbysco:1.21.11from
Firemoon777:1.21.11
Open

Respect antigriefing plugins#12
Firemoon777 wants to merge 1 commit into
Mrbysco:1.21.11from
Firemoon777:1.21.11

Conversation

@Firemoon777
Copy link
Copy Markdown

Antigriefing plugins like WorldGuard may cancel player's events if player is not supposed to interact here. But Armor Poser Plugin opens GUI even if interaction event was cancelled that allows user to edit armor stands anyways.

Solution:

  • Change event listener priority to HIGHEST (means Armor Stand Plugin will receive event as last as possible) and ignoreCancelled to true

Tested on Paper 1.21.11-92-main, WorldGuard 7.0.15

@Mrbysco
Copy link
Copy Markdown
Owner

Mrbysco commented Jan 12, 2026

Wait... isn't that backwards? HIGHEST being the last to receive?

@Firemoon777
Copy link
Copy Markdown
Author

Firemoon777 commented Jan 12, 2026

HIGHEST means last to receive: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/EventPriority.html

(Actually there is a MONITOR priority, but listeners with this priority should not cancel events)

@Mrbysco
Copy link
Copy Markdown
Owner

Mrbysco commented Jan 12, 2026

Just confusing since I'm used to the Priority in NeoForge which runs the other way around :P

@Firemoon777
Copy link
Copy Markdown
Author

I found mods like Possessive are able to move stands without GUI. So, players can steal armor stands and armor.

Is it okay to update this PR with implementation of armorposer.move permission to prevent any movement?

@Mrbysco
Copy link
Copy Markdown
Owner

Mrbysco commented Jan 12, 2026

Feel free to add another permission point

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