Class PartySubCommand
java.lang.Object
de.simonsator.partyandfriends.utilities.SubCommand
de.simonsator.partyandfriends.api.party.abstractcommands.PartySubCommand
- All Implemented Interfaces:
Comparable<SubCommand>
- Direct Known Subclasses:
Chat
,Info
,LeaderNeededCommand
,Leave
,PartyDenySubCommand
,PartyInviteSettingSubCommand
,PartyJoinInviteSubCommand
An abstract class for the party commands
-
Field Summary
Fields inherited from class de.simonsator.partyandfriends.utilities.SubCommand
HELP, PREFIX
-
Constructor Summary
ModifierConstructorDescriptionPartySubCommand
(String[] pCommands, int pPriority, String pHelp) PartySubCommand
(String[] pCommands, int pPriority, net.md_5.bungee.api.chat.TextComponent pHelp) protected
PartySubCommand
(List<String> pCommands, int pPriority, String pHelpText, String pPermission) -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasAccess
(int pPermissionHeight) boolean
hasAccess
(PlayerParty pPlayer, int pPermissionHeight) protected boolean
isInParty
(OnlinePAFPlayer pPlayer, PlayerParty pParty) protected boolean
isPlayerGiven
(OnlinePAFPlayer pPlayer, String[] args) void
sendError
(OnlinePAFPlayer pPlayer, net.md_5.bungee.api.chat.TextComponent pMessage) Methods inherited from class de.simonsator.partyandfriends.utilities.SubCommand
compareTo, getCommandName, getCommandNames, hasPermission, isApplicable, isApplicable, onCommand, printOutHelp, sendError
-
Constructor Details
-
PartySubCommand
-
PartySubCommand
public PartySubCommand(String[] pCommands, int pPriority, net.md_5.bungee.api.chat.TextComponent pHelp) -
PartySubCommand
-
-
Method Details
-
isInParty
-
hasAccess
public boolean hasAccess(int pPermissionHeight) -
hasAccess
-
isPlayerGiven
-
sendError
- Overrides:
sendError
in classSubCommand
-