public interface Command extends Terminable
EMPTY| Modifier and Type | Method and Description |
|---|---|
void |
call(CommandContext<?> context)
Calls the command handler
|
void |
register(String... aliases)
Registers this command with the server, via the given plugin instance
|
default void |
registerAndBind(TerminableConsumer consumer,
String... aliases)
Registers this command with the server, via the given plugin instance, and then binds it with the composite terminable.
|
bindWith, close, closeAndReportException, closeSilently, isClosedvoid register(@Nonnull String... aliases)
aliases - the aliases for the commanddefault void registerAndBind(@Nonnull TerminableConsumer consumer, @Nonnull String... aliases)
consumer - the terminable consumer to bind withaliases - the aliases for the commandvoid call(@Nonnull CommandContext<?> context) throws CommandInterruptException
context - the contexts for the commandCommandInterruptExceptionCopyright © 2020. All rights reserved.