Class SmartSubCommand

java.lang.Object
de.goldmensch.commanddispatcher.subcommand.SmartSubCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public abstract class SmartSubCommand extends Object implements org.bukkit.command.CommandExecutor
  • Constructor Details

    • SmartSubCommand

      public SmartSubCommand(@NotNull @NotNull Executor executor, @Nullable @Nullable String permission)
  • Method Details

    • setName

      @Internal public void setName(@NotNull @NotNull String name)
    • setDescription

      @Internal public void setDescription(@NotNull @NotNull String description)
    • getExecutor

      @NotNull public @NotNull Executor getExecutor()
      Returns:
      The Executor of the SubCommand
    • getPermission

      @NotNull public @NotNull Optional<String> getPermission()
      Returns:
      The permission of the SubCommand
    • getName

      @NotNull public @NotNull String getName()

      The name is a string consisting of the path and the name.

      Example: The StringArray {"arg0", "arg1", "name"} becomes "arg0 arg1 name"

      Returns:
      The name of the SubCommand
    • getDescription

      @NotNull public @NotNull Optional<String> getDescription()