Class WhitelistCommand
java.lang.Object
org.geysermc.floodgate.core.command.WhitelistCommand
- All Implemented Interfaces:
FloodgateCommand
-
Nested Class Summary
Nested Classes -
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.voidperformCommand(cloud.commandframework.context.CommandContext<UserAudience> context, boolean add) booleanshouldRegister(FloodgateConfig config) Called by the CommandRegister to check if the command should be added given the config.
-
Constructor Details
-
WhitelistCommand
public WhitelistCommand()
-
-
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
-
performCommand
public void performCommand(cloud.commandframework.context.CommandContext<UserAudience> context, boolean add) -
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
-
shouldRegister
Description copied from interface:FloodgateCommandCalled by the CommandRegister to check if the command should be added given the config.- Specified by:
shouldRegisterin interfaceFloodgateCommand- Parameters:
config- the config to check if a command should be added- Returns:
- true if it should be added
-