Add CommandMeta on Velocity

This commit is contained in:
Vankka 2024-11-17 00:34:29 +02:00
parent 751ab29c36
commit 2614eaf70a
No known key found for this signature in database
GPG Key ID: 62E48025ED4E7EBB

View File

@ -51,6 +51,9 @@ public class VelocityCommandHandler implements ICommandHandler {
@Override
public void registerCommand(GameCommand command) {
LiteralCommandNode<CommandSource> 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)
);
}
}