Interface FloodgateCommand

All Known Implementing Classes:
LinkAccountCommand, MainCommand, SubCommands, TestCommand, UnlinkAccountCommand, WhitelistCommand

public interface FloodgateCommand
The base class for every Floodgate command.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.incendo.cloud.Command<? extends UserAudience>
    buildCommand(org.incendo.cloud.CommandManager<UserAudience> commandManager)
    Called by the CommandRegister when it wants you to build the command which he can add.
    default boolean
    Called by the CommandRegister to check if the command should be added given the config.
  • Method Details

    • buildCommand

      org.incendo.cloud.Command<? extends UserAudience> buildCommand(org.incendo.cloud.CommandManager<UserAudience> commandManager)
      Called by the CommandRegister when it wants you to build the command which he can add.
      Parameters:
      commandManager - the manager to create a command
      Returns:
      the command to register
    • shouldRegister

      default boolean shouldRegister(FloodgateConfig config)
      Called by the CommandRegister to check if the command should be added given the config.
      Parameters:
      config - the config to check if a command should be added
      Returns:
      true if it should be added