java.lang.Object
de.themoep.connectorplugin.velocity.commands.SubCommand
All Implemented Interfaces:
com.velocitypowered.api.command.Command, com.velocitypowered.api.command.CommandMeta, com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>, com.velocitypowered.api.command.SimpleCommand
Direct Known Subclasses:
ConnectorCommand, ProxyConsoleCommand, ServerConsoleCommand, ServerPlayerCommand, TeleportCommand, TeleportToPlayerCommand

public abstract class SubCommand extends Object implements com.velocitypowered.api.command.CommandMeta, com.velocitypowered.api.command.SimpleCommand
  • Field Details

  • Constructor Details

  • Method Details

    • registerSubCommand

      public void registerSubCommand(SubCommand subCommand)
    • getSubCommand

      public SubCommand getSubCommand(String name)
    • execute

      public void execute(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
      Specified by:
      execute in interface com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
    • run

      public boolean run(com.velocitypowered.api.command.CommandSource sender, String alias, String[] args)
    • suggest

      public List<String> suggest(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
      Specified by:
      suggest in interface com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
    • onTabComplete

      public List<String> onTabComplete(com.velocitypowered.api.command.CommandSource sender, String[] args)
    • hasPermission

      public boolean hasPermission(com.velocitypowered.api.command.SimpleCommand.Invocation invocation)
      Specified by:
      hasPermission in interface com.velocitypowered.api.command.InvocableCommand<com.velocitypowered.api.command.SimpleCommand.Invocation>
    • hasPermission

      public boolean hasPermission(com.velocitypowered.api.command.CommandSource source)
    • getSubCommands

      public Map<String,SubCommand> getSubCommands()
    • getPlugin

      public VelocityConnectorPlugin getPlugin()
      Specified by:
      getPlugin in interface com.velocitypowered.api.command.CommandMeta
    • getName

      public String getName()
    • getUsage

      public String getUsage()
    • getPermission

      public String getPermission()
    • getAliases

      public Collection<String> getAliases()
      Specified by:
      getAliases in interface com.velocitypowered.api.command.CommandMeta
    • getHints

      public Collection<com.mojang.brigadier.tree.CommandNode<com.velocitypowered.api.command.CommandSource>> getHints()
      Specified by:
      getHints in interface com.velocitypowered.api.command.CommandMeta