From 307b5132df5eb115e72109a093995c62f69f71f1 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 7 Jul 2024 15:50:16 +0200 Subject: [PATCH] Command should also register in place of vanilla (e.g. /list) --- .../pandacube/lib/paper/commands/PaperBrigadierCommand.java | 5 +++++ 1 file changed, 5 insertions(+) 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 f88c3bf..eb7111b 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 @@ -145,6 +145,11 @@ public abstract class PaperBrigadierCommand extends BrigadierCommand c.getName().equals(commandNode.getName())); + } + registeredAliases = new HashSet<>(event.registrar().register(commandNode, description, List.of(aliases))); if (registrationPolicy == RegistrationPolicy.ALL) {