Class BungeeHandler

java.lang.Object
revxrsal.commands.core.BaseCommandHandler
revxrsal.commands.bungee.core.BungeeHandler
All Implemented Interfaces:
BungeeCommandHandler, CommandHandler

public final class BungeeHandler extends BaseCommandHandler implements BungeeCommandHandler
  • Constructor Details

    • BungeeHandler

      public BungeeHandler(net.md_5.bungee.api.plugin.Plugin plugin)
  • 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
    • getPlugin

      @NotNull public @NotNull net.md_5.bungee.api.plugin.Plugin getPlugin()
      Description copied from interface: BungeeCommandHandler
      Returns the plugin this command handler was registered for.
      Specified by:
      getPlugin in interface BungeeCommandHandler
      Returns:
      The owning plugin