Skip to content

Readd dead redirect recovery#12136

Merged
lynxplay merged 1 commit into
mainfrom
bugfix/brigadier-dead-redirects-commands-yaml
Feb 17, 2025
Merged

Readd dead redirect recovery#12136
lynxplay merged 1 commit into
mainfrom
bugfix/brigadier-dead-redirects-commands-yaml

Conversation

@lynxplay
Copy link
Copy Markdown
Contributor

@lynxplay lynxplay commented Feb 17, 2025

While the paper command system no longer uses redirects for namespaced
registration, vanilla still does. This means that removal of vanilla
redirecting target nodes still causes issues, e.g. the removal of the
vanilla 'msg' node in favour of a command alias one.
Redirecting nodes like tell, minecraft:msg and minecraft:tell are broken
by this and need to by flattened before sending them to the client.


Download the paperclip jar for this pull request: paper-12136.zip

While the paper command system no longer uses redirects for namespaced
registration, vanilla still does. This means that removal of vanilla
redirecting target nodes still causes issues, e.g. the removal of the
vanilla 'msg' node in favour of a command alias one.
Redirecting nodes like tell, minecraft:msg and minecraft:tell are broken
by this and need to by flattened before sending them to the client.
@lynxplay lynxplay requested a review from a team as a code owner February 17, 2025 10:09
@lynxplay lynxplay added the publish-pr Enables a workflow to build Paperclip jars on the pull request. label Feb 17, 2025
@lynxplay lynxplay merged commit 3b9106c into main Feb 17, 2025
@lynxplay lynxplay deleted the bugfix/brigadier-dead-redirects-commands-yaml branch February 17, 2025 22:51
booky10 added a commit to booky10/Paper that referenced this pull request May 7, 2025
The redirect flattening previously copied over children nodes
without checking node requirements (e.g. permissions)

Before PaperMC#11954, this issue caused node requirements to be ignored
for second-level command nodes created using the brigadier api
(if namespaced commands were prevented from being sent
using the spigot config option)

Since PaperMC#11954 is merged now, it's much less of an issue
But as PaperMC#12136 has been merged, it still is an issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

publish-pr Enables a workflow to build Paperclip jars on the pull request.

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

2 participants