AbstractAsyncCommand

abstract class AbstractAsyncCommand extends AbstractCommand

Command for abstractasyn operations. Registered with the command system and callable by players.

java.lang.Object > AbstractCommand > AbstractAsyncCommand

Field Summary

No fields documented.

Method Detail

AbstractAsyncCommand

public public AbstractAsyncCommand (@Nonnull final String name, @Nonnull final String description)

Method AbstractAsyncCommand.

Parameters:
@Nonnull final String name
@Nonnull final String description

execute

final CompletableFuture execute (@Nonnull final CommandContext context)

Method execute.

Parameters:
@Nonnull final CommandContext context

runAsync

public CompletableFuture runAsync (@Nonnull final CommandContext context, @Nonnull final Runnable runnable, @Nonnull final Executor executor)

Method runAsync.

Parameters:
@Nonnull final CommandContext context
@Nonnull final Runnable runnable
@Nonnull final Executor executor