Skip to content

Allow PlayerSelectors via Brigadier using CB reflection#163

Closed
R00tB33rMan wants to merge 4 commits into
Incendo:masterfrom
MagnoliaLLC:master
Closed

Allow PlayerSelectors via Brigadier using CB reflection#163
R00tB33rMan wants to merge 4 commits into
Incendo:masterfrom
MagnoliaLLC:master

Conversation

@R00tB33rMan

@R00tB33rMan R00tB33rMan commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

CraftBukkit (or Paper's) EntityArgument seemingly exposes ArgumentType.

@R00tB33rMan

Copy link
Copy Markdown
Contributor Author

Hey @jpenilla, this is a relatively critical fix that effectively fixes a good portion of what makes Incendo useful. Is there anything wrong with the approach I applied?

jpenilla added a commit that referenced this pull request Jul 20, 2026
Minecraft 1.21.1 added an allowSelectors parameter to EntityArgument's
internal parse overload. CraftBukkit consequently moved its existing
overridePermissions parameter to a three-argument overload.

Prefer that overload when available, while retaining the legacy
CraftBukkit overload for older Minecraft versions.

Refs #156
Supersedes #163

Co-authored-by: RootBeer <36140389+R00tB33rMan@users.noreply.github.com>
jpenilla added a commit that referenced this pull request Jul 20, 2026
Minecraft 1.21.1 added an allowSelectors parameter to EntityArgument's
internal parse overload. CraftBukkit consequently moved its existing
overridePermissions parameter to a three-argument overload.

Prefer that overload when available, while retaining the legacy
CraftBukkit overload for older Minecraft versions.

Refs #156
Supersedes #163

Co-authored-by: RootBeer <36140389+R00tB33rMan@users.noreply.github.com>
@jpenilla

Copy link
Copy Markdown
Member

Thanks for identifying the CraftBukkit signature change and proposing the compatibility fix. We landed an equivalent implementation in f41000ff2742e08753a692b6b48f22fa1aac9a3e with additional documentation covering the pre-1.21.1 and current signatures. It preserves the legacy fallback while using the three-argument overload on current versions.

Your contribution is credited with a Co-authored-by trailer. Closing this as superseded. Thank you for bringing the regression to our attention.

@jpenilla jpenilla closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants