Class SubCommand

java.lang.Object
de.simonsator.partyandfriends.utilities.SubCommand
All Implemented Interfaces:
Comparable<SubCommand>
Direct Known Subclasses:
AdminSubCommand, FriendSubCommand, PartySubCommand

public abstract class SubCommand extends Object implements Comparable<SubCommand>
  • Field Details

    • HELP

      public final net.md_5.bungee.api.chat.TextComponent HELP
    • PREFIX

      protected final String PREFIX
  • Constructor Details

    • SubCommand

      protected SubCommand(String[] pCommands, int pPriority, net.md_5.bungee.api.chat.TextComponent pHelp, String pPrefix)
    • SubCommand

      protected SubCommand(String[] pCommands, int pPriority, String pHelp, String pPrefix)
    • SubCommand

      protected SubCommand(List<String> pCommands, int pPriority, String pHelp, String pPrefix, String pPermission)
      Parameters:
      pCommands - The names of this command
      pPriority - The priority of this command (the command with the lowest priority is listed first)
      pHelp - The help message. It will be outprinted when the command is listed and when printOutHelp(OnlinePAFPlayer, String) printOutHelp} is called.
      pPrefix - The prefix of this command (e.g. [Friends] or [Party])
      pPermission - The permission which is needed to execute this command. If no Permission is needed set it to null.
  • Method Details