Class LinkAccountCommand

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

@Singleton public final class LinkAccountCommand extends Object implements FloodgateCommand
  • Constructor Details

    • LinkAccountCommand

      public LinkAccountCommand()
  • Method Details

    • buildCommand

      public org.incendo.cloud.Command<UserAudience.PlayerAudience> buildCommand(org.incendo.cloud.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
    • execute

      public void execute(org.incendo.cloud.context.CommandContext<UserAudience.PlayerAudience> context)
    • 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