Paper
Paper copied to clipboard
Add api to resolve components
Resolves https://github.com/PaperMC/Paper/issues/5413
Perhaps some mention of the permission craftbukkit adds minecraft.command.selector since that will block the use of some components that make use of selectors if the CommandSender doesn't have that permission?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rebased for 1.19.1
The selectEntities method does something similar with creating a CommandSourceStack and it adds a boolean param to override permissions, might want to do the same here
The selectEntities method does something similar with creating a CommandSourceStack and it adds a boolean param to override permissions, might want to do the same here
Ok did this, entity selector permission check is bypassed.
I also expanded the javadocs to explain what components can be resolved, and what is required/optional for each type.