Class BanCommand

java.lang.Object
fr.andross.banitem.commands.BanCommand
Direct Known Subclasses:
Commandadd, Commandcheck, Commandhelp, Commandinfo, Commandload, Commandlog, Commandmetaitem, Commandreload, Commandremove

public abstract class BanCommand extends Object
Abstract sub command class
Version:
3.2
Author:
Andross
  • Field Details

    • pl

      protected final BanItem pl
    • sender

      protected final org.bukkit.command.CommandSender sender
    • args

      protected final String[] args
  • Constructor Details

    • BanCommand

      public BanCommand(@NotNull BanItem pl, @NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args)
  • Method Details

    • header

      protected void header(@NotNull String title)
      Sending a header separator
    • message

      protected void message(@Nullable String message)
      Send a (colored) message to the sender
      Parameters:
      message - message to send
    • getNoPermMessage

      @Nullable protected String getNoPermMessage()
      Returns:
      the no permission message from config
    • run

      public abstract void run()
      Running a subcommand
    • runTab

      @Nullable public abstract List<String> runTab()
      Running a subcommand tab
      Returns:
      list of tab completition