Class ClanSubCommand
java.lang.Object
de.simonsator.partyandfriends.utilities.SubCommand
de.simonsator.partyandfriends.clan.api.abstractcommands.ClanSubCommand
- All Implemented Interfaces:
Comparable<de.simonsator.partyandfriends.utilities.SubCommand>
- Direct Known Subclasses:
ClanLeaderCommand
,ClanMemberCommand
,Decline
,Get
,Info
,NoClanAcceptedCommands
,Settings
,Stats
,TopClanSubcommand
public abstract class ClanSubCommand
extends de.simonsator.partyandfriends.utilities.SubCommand
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class de.simonsator.partyandfriends.utilities.SubCommand
HELP, PREFIX
-
Constructor Summary
ConstructorDescriptionClanSubCommand
(String[] pCommands, int pPriority, String pHelp) ClanSubCommand
(String[] pCommands, String pPermission, int pPriority, String pHelp) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
enoughArguments
(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, String[] args) protected boolean
enoughArguments
(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, String[] args, int n) protected abstract void
protected Clan
getClan
(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer) protected Clan
protected de.simonsator.partyandfriends.api.pafplayers.PAFPlayer
boolean
hasAccess
(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, int pPlayerType) boolean
hasPermission
(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer) protected boolean
final void
void
void
sendError
(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, net.md_5.bungee.api.chat.TextComponent pMessage) Methods inherited from class de.simonsator.partyandfriends.utilities.SubCommand
compareTo, getCommandName, getCommandNames, isApplicable, isApplicable, printOutHelp
-
Field Details
-
LEADERS
public static final int LEADERS- See Also:
-
NO_CLAN
public static final int NO_CLAN- See Also:
-
HAS_CLAN
public static final int HAS_CLAN- See Also:
-
-
Constructor Details
-
ClanSubCommand
-
ClanSubCommand
-
-
Method Details
-
sendError
public void sendError(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, String pIdentifier) - Overrides:
sendError
in classde.simonsator.partyandfriends.utilities.SubCommand
-
enoughArguments
protected boolean enoughArguments(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, String[] args, int n) -
enoughArguments
protected boolean enoughArguments(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, String[] args) -
getClan
-
getClan
-
isLeader
protected boolean isLeader(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, Clan pClan) -
getPlayer
protected de.simonsator.partyandfriends.api.pafplayers.PAFPlayer getPlayer(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, String[] args) -
onCommand
public final void onCommand(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, String[] args) - Specified by:
onCommand
in classde.simonsator.partyandfriends.utilities.SubCommand
-
execute
protected abstract void execute(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, String[] args) -
hasAccess
public boolean hasAccess(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, int pPlayerType) -
hasPermission
public boolean hasPermission(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer) - Overrides:
hasPermission
in classde.simonsator.partyandfriends.utilities.SubCommand
-
sendError
public void sendError(de.simonsator.partyandfriends.api.pafplayers.OnlinePAFPlayer pPlayer, net.md_5.bungee.api.chat.TextComponent pMessage) - Overrides:
sendError
in classde.simonsator.partyandfriends.utilities.SubCommand
-