Class SkriptCommand.SubCommand

java.lang.Object
ch.njol.skript.skcommand.SkriptCommand.SubCommand
Enclosing class:
SkriptCommand

protected abstract static class SkriptCommand.SubCommand extends Object
Represents a subcommand of the /sk command, like /sk reload
  • Constructor Details

    • SubCommand

      public SubCommand(String... aliases)
  • Method Details

    • getAliases

      public String[] getAliases()
    • args

      public void args(String... args)
    • args

      public String[] args()
    • execute

      public abstract void execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String @NotNull [] args)
      Executes this SubCommand
      Parameters:
      sender - Source of the command
      args - The arguments
    • getTabCompletions

      public abstract List<String> getTabCompletions(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String @NotNull [] args)
      Returns the tab completions for this SubCommand
      Parameters:
      sender - Source of the command
      args - The arguments
      Returns:
      The tab completions