Repository navigation
Add permissions for "reset" and sequence arguments in "/random". - #14128
Open
Mickey42302 wants to merge 18 commits into
Open
Mickey42302 wants to merge 18 commits into
Mickey42302 wants to merge 18 commits into
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: |
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".