Working command arguments

This commit is contained in:
IxPrumxI 2025-01-16 11:15:53 +03:00
parent 40da11747d
commit e1179c408c

View File

@ -49,6 +49,6 @@ public class FabricCommandHandler implements ICommandHandler {
@Override
public void registerCommand(GameCommand command) {
LiteralCommandNode<ServerCommandSource> node = BrigadierUtil.convertToBrigadier(command, this::getSender);
discordSRV.getServer().getCommandManager().getDispatcher().register(node.createBuilder());
discordSRV.getServer().getCommandManager().getDispatcher().getRoot().addChild(node);
}
}