Skip to content

Commit

Permalink
Add CommandMeta on Velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankka committed Nov 16, 2024
1 parent 751ab29 commit 2614eaf
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ private ICommandSender getSender(CommandSource source) {
@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)
);
}
}

0 comments on commit 2614eaf

Please sign in to comment.