Class WhitelistCommand

java.lang.Object
org.geysermc.floodgate.core.command.WhitelistCommand
All Implemented Interfaces:
FloodgateCommand

@Singleton public class WhitelistCommand extends Object implements FloodgateCommand
  • Constructor Details

    • WhitelistCommand

      public WhitelistCommand()
  • Method Details

    • buildCommand

      public cloud.commandframework.Command<UserAudience> buildCommand(cloud.commandframework.CommandManager<UserAudience> commandManager)
      Description copied from interface: FloodgateCommand
      Called by the CommandRegister when it wants you to build the command which he can add.
      Specified by:
      buildCommand in interface FloodgateCommand
      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

      public void execute(cloud.commandframework.context.CommandContext<UserAudience> context)
      Description copied from interface: FloodgateCommand
      Called when the command created in FloodgateCommand.buildCommand(CommandManager) is executed.
      Specified by:
      execute in interface FloodgateCommand
      Parameters:
      context - the context of the executed command
    • shouldRegister

      public boolean shouldRegister(FloodgateConfig config)
      Description copied from interface: FloodgateCommand
      Called by the CommandRegister to check if the command should be added given the config.
      Specified by:
      shouldRegister in interface FloodgateCommand
      Parameters:
      config - the config to check if a command should be added
      Returns:
      true if it should be added