Class VelocityHandler

java.lang.Object
revxrsal.commands.core.BaseCommandHandler
revxrsal.commands.velocity.core.VelocityHandler
All Implemented Interfaces:
CommandHandler, VelocityCommandHandler

public final class VelocityHandler extends BaseCommandHandler implements VelocityCommandHandler
  • Constructor Details

    • VelocityHandler

      public VelocityHandler(@Nullable @Nullable Object plugin, @NotNull @NotNull com.velocitypowered.api.proxy.ProxyServer server)
  • Method Details

    • register

      @NotNull public @NotNull CommandHandler register(@NotNull @NotNull Object... commands)
      Description copied from interface: CommandHandler
      Registers the specified command from an instance. This will automatically set all Dependency-annotated fields with their values.
      Specified by:
      register in interface CommandHandler
      Overrides:
      register in class BaseCommandHandler
      Parameters:
      commands - The commands object instances. Can be a class if methods are static.
      Returns:
      This command handler
    • getServer

      public com.velocitypowered.api.proxy.ProxyServer getServer()
      Description copied from interface: VelocityCommandHandler
      Returns the ProxyServer this command handler was registered on.
      Specified by:
      getServer in interface VelocityCommandHandler
      Returns:
      The proxy server.