public final class MainCommand extends SubCommands implements FloodgateCommand
| Constructor and Description |
|---|
MainCommand() |
| 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. |
defineSubCommand, registerSubCommands, subCommandsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldRegisterpublic 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 command