From 5a04052f8e063aac0522f4d1a456e791266100ef Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 10 Jul 2024 21:34:03 +0200 Subject: [PATCH] Fix (again) command registering --- .../pandacube/lib/paper/commands/PaperBrigadierCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/commands/PaperBrigadierCommand.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/commands/PaperBrigadierCommand.java index f01d208..3a47606 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/commands/PaperBrigadierCommand.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/commands/PaperBrigadierCommand.java @@ -205,7 +205,7 @@ public abstract class PaperBrigadierCommand extends BrigadierCommand c.getName().equals(aliasToForce)); } - LiteralCommandNode newPCN = unwrap(new PluginCommandNode(commandNode.getName(), plugin.getPluginMeta(), commandNode, description)); + LiteralCommandNode newPCN = unwrap(new PluginCommandNode(aliasToForce, plugin.getPluginMeta(), commandNode, description)); vanillaPaperDispatcher.getRoot().addChild(newPCN); } }); @@ -255,7 +255,7 @@ public abstract class PaperBrigadierCommand extends BrigadierCommand