Class IndexCommand

java.lang.Object
org.bukkit.command.Command
me.wolfyscript.customcrafting.commands.IndexCommand
Direct Known Subclasses:
CommandCC, CommandRecipe

public abstract class IndexCommand extends org.bukkit.command.Command
  • Field Summary

    Fields inherited from class org.bukkit.command.Command

    description, timings, usageMessage
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    IndexCommand​(@NotNull String name)
     
    protected
    IndexCommand​(@NotNull String name, @NotNull String description, @NotNull String usageMessage, @NotNull List<String> aliases)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute​(@NotNull org.bukkit.command.CommandSender sender, @NotNull String s, @NotNull String[] args)
     
     
    void
     
    @NotNull List<String>
    tabComplete​(@NotNull org.bukkit.command.CommandSender sender, @NotNull String alias, @NotNull String[] strings)
     
     

    Methods inherited from class org.bukkit.command.Command

    broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getTimingName, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, unregister

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • IndexCommand

      protected IndexCommand(@NotNull @NotNull String name)
    • IndexCommand

      protected IndexCommand(@NotNull @NotNull String name, @NotNull @NotNull String description, @NotNull @NotNull String usageMessage, @NotNull @NotNull List<String> aliases)
  • Method Details

    • registerSubCommand

      public void registerSubCommand(AbstractSubCommand subCommand)
    • execute

      public boolean execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String s, @NotNull @NotNull String[] args)
      Specified by:
      execute in class org.bukkit.command.Command
    • tabComplete

      @NotNull public @NotNull List<String> tabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String alias, @NotNull @NotNull String[] strings) throws IllegalArgumentException
      Overrides:
      tabComplete in class org.bukkit.command.Command
      Throws:
      IllegalArgumentException
    • getSubCommands

      public Map<String,​AbstractSubCommand> getSubCommands()
    • toString

      public String toString()
      Overrides:
      toString in class org.bukkit.command.Command