Class MainCommand
java.lang.Object
org.geysermc.floodgate.core.platform.command.SubCommands
org.geysermc.floodgate.core.command.main.MainCommand
- All Implemented Interfaces:
FloodgateCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloud.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.voidexecute(cloud.commandframework.context.CommandContext<UserAudience> context) Called when the command created inFloodgateCommand.buildCommand(CommandManager)is executed.Methods inherited from class org.geysermc.floodgate.core.platform.command.SubCommands
setup, subCommandsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.floodgate.core.platform.command.FloodgateCommand
shouldRegister
-
Constructor Details
-
MainCommand
public MainCommand()
-
-
Method Details
-
buildCommand
public cloud.commandframework.Command<UserAudience> buildCommand(cloud.commandframework.CommandManager<UserAudience> commandManager) Description copied from interface:FloodgateCommandCalled by the CommandRegister when it wants you to build the command which he can add.- Specified by:
buildCommandin interfaceFloodgateCommand- Parameters:
commandManager- the manager to create a command- Returns:
- the command to register
-
execute
Description copied from interface:FloodgateCommandCalled when the command created inFloodgateCommand.buildCommand(CommandManager)is executed.- Specified by:
executein interfaceFloodgateCommand- Parameters:
context- the context of the executed command
-