public CommandCompleter(CommandRegistry cmdRegistry, CommandContext ctx) {
if(cmdRegistry == null)
throw new IllegalArgumentException("Command registry can't be null.");
this.cmdRegistry = cmdRegistry;
this.cmdProvider = new CommandCandidatesProvider(cmdRegistry);
this.ctx = ctx;
}