Class Add
- java.lang.Object
-
- de.simonsator.partyandfriends.utilities.SubCommand
-
- de.simonsator.partyandfriends.api.friends.abstractcommands.FriendSubCommand
-
- de.simonsator.partyandfriends.friends.subcommands.Add
-
- All Implemented Interfaces:
java.lang.Comparable<SubCommand>
public class Add extends FriendSubCommand
The command add
-
-
Field Summary
-
Fields inherited from class de.simonsator.partyandfriends.utilities.SubCommand
HELP, PREFIX
-
-
Constructor Summary
Constructors Constructor Description Add(java.util.List<java.lang.String> pCommands, int pPriority, java.lang.String pHelp, java.lang.String pAcceptCommandName, java.lang.String pPermission)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isAFriendOf(OnlinePAFPlayer pPlayer, PAFPlayer pGivenPlayer)
void
onCommand(OnlinePAFPlayer pPlayer, java.lang.String[] args)
-
Methods inherited from class de.simonsator.partyandfriends.api.friends.abstractcommands.FriendSubCommand
isAFriendOf, isPlayerGiven, sendError
-
Methods inherited from class de.simonsator.partyandfriends.utilities.SubCommand
compareTo, getCommandName, getCommandNames, hasPermission, isApplicable, isApplicable, printOutHelp, sendError
-
-
-
-
Method Detail
-
onCommand
public void onCommand(OnlinePAFPlayer pPlayer, java.lang.String[] args)
- Specified by:
onCommand
in classSubCommand
-
isAFriendOf
protected boolean isAFriendOf(OnlinePAFPlayer pPlayer, PAFPlayer pGivenPlayer)
- Overrides:
isAFriendOf
in classFriendSubCommand
-
-