Repository navigation
Add permissions for "reset" and sequence arguments in "/random". - #14128
Merged
Merged
Conversation
lynxplay
previously requested changes
Aug 2, 2026
Contributor
Author
|
The code is updated now. |
Contributor
Author
|
Are any more changes needed? |
Warriorrrr
approved these changes
Oct 5, 2026
Warriorrrr
left a comment
Member
There was a problem hiding this comment.
I think this looks fine, the default hasPermission always returns true for ops so the or doesn't really seem necessary, plus this allows you to disable it for ops if you really wanted to do that.
Since this is adding new command permissions, you should also create a PR to our docs repo to document this & keep it up to date.
Contributor
Author
|
I've opened a pull request which adds the new permission nodes to the documentation. It can be found here: |
Added permission check for spawn protection bypass.
granny
added a commit
to PurpurMC/Purpur
that referenced
this pull request
Oct 23, 2026
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@0db5c93a Add helper methods for vanilla-style command feedback PaperMC/Paper#14331 PaperMC/Paper@ac9a1b2c Make Color implement adventure ARGBLike PaperMC/Paper#14349 PaperMC/Paper@e65c0765 Add permissions for reset and sequence arguments in /random PaperMC/Paper#14128 PaperMC/Paper@0d9bf08a [ci/skip] Fix broken test plugin refs PaperMC/Paper@2f1ce01e Improve swing hand API to respect item ATTACK_ANIMATION component PaperMC/Paper#14363 PaperMC/Paper@d86d4274 Call PlayerBucketEmptyEvent for Sulfur Cube in Bucket PaperMC/Paper#14150 PaperMC/Paper@325f9071 Clear scoreboard team entries on unregister PaperMC/Paper#14159 PaperMC/Paper@1b9bf5c8 Add EntityPotentSulfurLaunchEvent PaperMC/Paper#14237
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
I would like to suggest implementing some additional permission nodes for "/random".
Currently, the "reset" subcommand and sequence arguments only work if a player has operator privileges. This is the case even if a regular player has the "minecraft.command.random" permission.
This addition would allow server owners to grant the ability to use sequences and the "reset" subcommand without needing to grant operator privileges.
For the "reset" subcommand, the permission node is "minecraft.command.random.reset". For sequence arguments, the permission node is "minecraft.command.random.sequence".