Paper icon indicating copy to clipboard operation
Paper copied to clipboard

Add api to resolve components

Open Machine-Maker opened this issue 3 years ago • 2 comments

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?

Machine-Maker avatar Mar 22 '22 06:03 Machine-Maker

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.

stale[bot] avatar Jul 30 '22 14:07 stale[bot]

Rebased for 1.19.1

Machine-Maker avatar Jul 31 '22 06:07 Machine-Maker

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

jpenilla avatar Nov 22 '22 02:11 jpenilla

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.

Machine-Maker avatar Nov 23 '22 00:11 Machine-Maker