PaperMC / Paper

The most widely used, high performance Minecraft server that aims to fix gameplay and mechanics inconsistencies
https://papermc.io/
Other
9.34k stars 2.2k forks source link

Copy forward when registering alias (fixes #10827) #10951

Closed ookiegajwa closed 1 week ago

ookiegajwa commented 1 week ago

When flattening any command or registering an alias to a node with no direct children (such as a redirect), the code now takes into account any potential redirect/fork/forward on the target node. This fixes the issue where, when registering a command that was simply a redirect, only the namespaced literal would work, and not any aliases of the command.

This fixes #10827

github-actions[bot] commented 1 week ago

Please do not open pull requests from the master branch, create a new branch instead.