From 2614eaf70a9df691ffa487c5f6ff707884c3ff99 Mon Sep 17 00:00:00 2001 From: Vankka Date: Sun, 17 Nov 2024 00:34:29 +0200 Subject: [PATCH] Add CommandMeta on Velocity --- .../command/game/handler/VelocityCommandHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/velocity/src/main/java/com/discordsrv/velocity/command/game/handler/VelocityCommandHandler.java b/velocity/src/main/java/com/discordsrv/velocity/command/game/handler/VelocityCommandHandler.java index 16982e3f..132c7c14 100644 --- a/velocity/src/main/java/com/discordsrv/velocity/command/game/handler/VelocityCommandHandler.java +++ b/velocity/src/main/java/com/discordsrv/velocity/command/game/handler/VelocityCommandHandler.java @@ -51,6 +51,9 @@ public class VelocityCommandHandler implements ICommandHandler { @Override public void registerCommand(GameCommand command) { LiteralCommandNode node = BrigadierUtil.convertToBrigadier(command, this::getSender); - discordSRV.proxy().getCommandManager().register(new BrigadierCommand(node)); + discordSRV.proxy().getCommandManager().register( + discordSRV.proxy().getCommandManager().getCommandMeta(command.getLabel()), + new BrigadierCommand(node) + ); } }