Interface Command<Ctx extends CommandContext,Msg>
- Type Parameters:
Msg- The type of message produced by this command.
- All Known Subinterfaces:
SpigotCommand<Msg>
- All Known Implementing Classes:
Command.PureCommand,SendMessageCommand
public interface Command<Ctx extends CommandContext,Msg>
A command is an object which performs some side effect and produces a message upon completion.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classCommand.PureCommand<Ctx extends CommandContext,Msg> -
Method Summary
-
Method Details
-
pure
-
batch
@SafeVarargs static <Ctx extends CommandContext,Msg> Command<Ctx,Msg> batch(Command<Ctx, Msg>... commands) -
run
-