Class IAbstractCommand<P extends CodexPlugin<P>>

java.lang.Object
studio.magemonkey.codex.commands.api.IAbstractCommand<P>
Direct Known Subclasses:
IGeneralCommand, ISubCommand

public abstract class IAbstractCommand<P extends CodexPlugin<P>> extends Object
  • Field Details

    • plugin

      @NotNull protected P extends CodexPlugin<P> plugin
    • aliases

      protected String[] aliases
    • permission

      protected String permission
  • Constructor Details

    • IAbstractCommand

      public IAbstractCommand(@NotNull P plugin, @NotNull List<String> aliases)
    • IAbstractCommand

      public IAbstractCommand(@NotNull P plugin, @NotNull String[] aliases)
    • IAbstractCommand

      public IAbstractCommand(@NotNull P plugin, @NotNull List<String> aliases, @Nullable String permission)
    • IAbstractCommand

      public IAbstractCommand(@NotNull P plugin, @NotNull String[] aliases, @Nullable String permission)
  • Method Details

    • labels

      @NotNull public final String[] labels()
    • getPermission

      @Nullable public final String getPermission()
    • usage

      @NotNull public abstract String usage()
    • description

      @NotNull public abstract String description()
    • playersOnly

      public abstract boolean playersOnly()
    • getTab

      @NotNull public List<String> getTab(@NotNull org.bukkit.entity.Player player, int i, @NotNull String[] args)
    • perform

      protected abstract void perform(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, @NotNull String[] args)
    • execute

      public final void execute(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, @NotNull String[] args)
    • hasPerm

      public final boolean hasPerm(@NotNull org.bukkit.command.CommandSender sender)
    • printUsage

      protected final void printUsage(@NotNull org.bukkit.command.CommandSender sender)
    • errPerm

      protected final void errPerm(@NotNull org.bukkit.command.CommandSender sender)
    • errItem

      protected final void errItem(@NotNull org.bukkit.command.CommandSender sender)
    • errPlayer

      protected final void errPlayer(@NotNull org.bukkit.command.CommandSender sender)
    • errSender

      protected final void errSender(@NotNull org.bukkit.command.CommandSender sender)
    • errType

      protected final void errType(@NotNull org.bukkit.command.CommandSender sender, @NotNull Class<?> clazz)
    • getNumD

      protected final double getNumD(@NotNull org.bukkit.command.CommandSender sender, @NotNull String input, double def)
    • getNumD

      protected final double getNumD(@NotNull org.bukkit.command.CommandSender sender, @NotNull String input, double def, boolean allowNega)
    • getNumI

      protected final int getNumI(@NotNull org.bukkit.command.CommandSender sender, @NotNull String input, int def)
    • getNumI

      protected final int getNumI(@NotNull org.bukkit.command.CommandSender sender, @NotNull String input, int def, boolean nega)