Closed armagidon-exception closed 3 months ago
TAB completions don't work with brigadier on.
onEnable:
BukkitCommandHandler handler = BukkitCommandHandler.create(this); handler.register(injector.getInstance(BaseCommands.class)); handler.registerBrigadier();
BaseCommands
@Command("command subcommand") @CommandPermission("command.subcommand") public CompletableFuture<Void> command(Player sender, OfflinePlayer target, @Range(min = 1) int amount, String reason) { return CompletableFuture.runAsync(Unchecked.runnable(() -> { // SOME CODE })).exceptionally(exceptionHandler.adaptForCompletableFuture()); }
handler.registerBrigadier()
1.20.4
3.1.9
paper
The completions work fine. It was the completions for OfflinePlayer that weren't working. This has been fixed in v3.2.0
TAB completions don't work with brigadier on.
Sources
onEnable:
BaseCommands
How to reproduce
handler.registerBrigadier()
System information
1.20.4
3.1.9
paper