Interface VelocityCommandHandler

All Superinterfaces:
CommandHandler
All Known Implementing Classes:
VelocityHandler

public interface VelocityCommandHandler extends CommandHandler
Represents Velocity's command handler implementation
  • Method Details

    • getServer

      com.velocitypowered.api.proxy.ProxyServer getServer()
      Returns the ProxyServer this command handler was registered on.
      Returns:
      The proxy server.
    • create

      @Deprecated @NotNull static @NotNull VelocityCommandHandler create(@NotNull @NotNull com.velocitypowered.api.proxy.ProxyServer server)
      Deprecated.
      This constructor provides no plugin instance. Therefore, command namespaces (namespace:command) will not work. Use create(Object, ProxyServer)
      Creates a new VelocityCommandHandler for the given proxy.
      Parameters:
      server - Server proxy to register for
      Returns:
      The newly created handler
    • create

      @NotNull static @NotNull VelocityCommandHandler create(Object plugin, @NotNull @NotNull com.velocitypowered.api.proxy.ProxyServer server)
      Creates a new VelocityCommandHandler for the given proxy.
      Parameters:
      server - Server proxy to register for
      Returns:
      The newly created handler