Skip to content

feat(plugin-api) Add fine-grained player permission control to plugin API.#2059

Open
StormLight14 wants to merge 8 commits intoPumpkin-MC:masterfrom
StormLight14:master
Open

feat(plugin-api) Add fine-grained player permission control to plugin API.#2059
StormLight14 wants to merge 8 commits intoPumpkin-MC:masterfrom
StormLight14:master

Conversation

@StormLight14
Copy link
Copy Markdown
Contributor

@StormLight14 StormLight14 commented Apr 22, 2026

Description

Adds set_permission, unset_permission, and has_permission_set methods on the Player resource, allowing plugins to control and get the values of specific permission nodes for players.

These methods were implemented using the already existing methods from PermissionAttachment.

Testing

I tested each of the new methods by making a simple permissions plugin and they all seem to work as expected.

cargo clippy --all-targets
cargo test

@GreenedDev GreenedDev added enhancement New feature or request api Anything that deals with Pumpkin's plugin API labels Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Anything that deals with Pumpkin's plugin API enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants