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