Class SubCommand
java.lang.Object
de.simonsator.partyandfriends.utilities.SubCommand
- All Implemented Interfaces:
Comparable<SubCommand>
- Direct Known Subclasses:
AdminSubCommand,FriendSubCommand,PartySubCommand
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSubCommand(String[] pCommands, int pPriority, String pHelp, String pPrefix) protectedSubCommand(String[] pCommands, int pPriority, net.md_5.bungee.api.chat.TextComponent pHelp, String pPrefix) protected -
Method Summary
Modifier and TypeMethodDescriptionintbooleanhasPermission(OnlinePAFPlayer pPlayer) booleanisApplicable(OnlinePAFPlayer pPlayer, String pCommand) booleanisApplicable(String pCommand) abstract voidonCommand(OnlinePAFPlayer pPlayer, String[] args) voidprintOutHelp(OnlinePAFPlayer pPlayer, String pCommandName) voidsendError(OnlinePAFPlayer pPlayer, String pIdentifier) voidsendError(OnlinePAFPlayer pPlayer, net.md_5.bungee.api.chat.TextComponent pMessage)
-
Field Details
-
HELP
public final net.md_5.bungee.api.chat.TextComponent HELP -
PREFIX
-
-
Constructor Details
-
SubCommand
-
SubCommand
-
SubCommand
protected SubCommand(List<String> pCommands, int pPriority, String pHelp, String pPrefix, String pPermission) - Parameters:
pCommands- The names of this commandpPriority- 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 whenprintOutHelp(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
-
isApplicable
-
isApplicable
-
sendError
-
sendError
-
onCommand
-
compareTo
- Specified by:
compareToin interfaceComparable<SubCommand>
-
getCommandName
-
getCommandNames
-
printOutHelp
-
hasPermission
-