abstract

AbstractAsyncCommand

Base class for async commands that need world access. Override executeAsync(CommandContext). Use context.sender() to get CommandSender, cast to Player if needed. Access player reference via player.getReference(), then store via ref.getStore().

Methods

void addSubCommand(AbstractCommand subCommand)

Add a subcommand.

CompletableFuture executeAsync(CommandContext context)

Override to implement async command. Return CompletableFuture.

void requirePermission(String permission)

Set required permission for command.