mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-02-16 01:41:26 +01:00
Add CommandMeta on Velocity
This commit is contained in:
parent
751ab29c36
commit
2614eaf70a
@ -51,6 +51,9 @@ public class VelocityCommandHandler implements ICommandHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void registerCommand(GameCommand command) {
|
public void registerCommand(GameCommand command) {
|
||||||
LiteralCommandNode<CommandSource> node = BrigadierUtil.convertToBrigadier(command, this::getSender);
|
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)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user