public class TestCommand extends Object implements FloodgateCommand
| Constructor and Description |
|---|
TestCommand() |
| 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
FloodgateCommand.buildCommand(CommandManager) is executed. |
boolean |
shouldRegister(FloodgateConfig config)
Called by the CommandRegister to check if the command should be added given the config.
|
public cloud.commandframework.Command<UserAudience> buildCommand(cloud.commandframework.CommandManager<UserAudience> commandManager)
FloodgateCommandbuildCommand in interface FloodgateCommandcommandManager - the manager to create a commandpublic void execute(cloud.commandframework.context.CommandContext<UserAudience> context)
FloodgateCommandFloodgateCommand.buildCommand(CommandManager) is executed.execute in interface FloodgateCommandcontext - the context of the executed commandpublic boolean shouldRegister(FloodgateConfig config)
FloodgateCommandshouldRegister in interface FloodgateCommandconfig - the config to check if a command should be added