From 1b3f9daf7ce2ab31cf6bc0989b18b2fe35b616b7 Mon Sep 17 00:00:00 2001 From: ookiegajwa <91029880+ookiegajwa@users.noreply.github.com> Date: Mon, 23 Dec 2024 14:12:07 -0600 Subject: [PATCH] Copy forward when registering alias (fixes #10827) 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. --- .../java/io/papermc/paper/command/brigadier/PaperCommands.java | 1 + 1 file changed, 1 insertion(+) diff --git a/paper-server/src/main/java/io/papermc/paper/command/brigadier/PaperCommands.java b/paper-server/src/main/java/io/papermc/paper/command/brigadier/PaperCommands.java index 95d3b42cbe..79642b1a81 100644 --- a/paper-server/src/main/java/io/papermc/paper/command/brigadier/PaperCommands.java +++ b/paper-server/src/main/java/io/papermc/paper/command/brigadier/PaperCommands.java @@ -132,6 +132,7 @@ public class PaperCommands implements Commands, PaperRegistrar