public interface FloodgateCommand
| Modifier and Type | Method and Description |
|---|---|
cloud.commandframework.Command<UserAudience> |
buildCommand(cloud.commandframework.CommandManager<UserAudience> commandManager)
Called by the CommandRegister when it wants you to build the command which he can add.
|
void |
execute(cloud.commandframework.context.CommandContext<UserAudience> context)
Called when the command created in
buildCommand(CommandManager) is executed. |
default boolean |
shouldRegister(FloodgateConfig config)
Called by the CommandRegister to check if the command should be added given the config.
|
cloud.commandframework.Command<UserAudience> buildCommand(cloud.commandframework.CommandManager<UserAudience> commandManager)
commandManager - the manager to create a commandvoid execute(cloud.commandframework.context.CommandContext<UserAudience> context)
buildCommand(CommandManager) is executed.context - the context of the executed commanddefault boolean shouldRegister(FloodgateConfig config)
config - the config to check if a command should be added