public class PartyCommand extends TopCommand<PartySubCommand>
subCommands
Constructor | Description |
---|---|
PartyCommand(java.lang.String[] pCommandNames,
java.lang.String pPrefix) |
Modifier and Type | Method | Description |
---|---|---|
static PartyCommand |
getInstance() |
|
protected void |
onCommand(OnlinePAFPlayer pPlayer,
java.lang.String[] args) |
Decides if a subcommand should be called and if which one.
|
canEqual, equals, getAliases, getName, getPermission, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addCommand, execute, getPrefix, getSubCommand, isPlayer, sort, tabComplete
public PartyCommand(java.lang.String[] pCommandNames, java.lang.String pPrefix)
pCommandNames
- The alias for the commandpPrefix
- The prefix for this command (e.g. [Party])public static PartyCommand getInstance()
protected void onCommand(OnlinePAFPlayer pPlayer, java.lang.String[] args)
TopCommand
onCommand
in class TopCommand<PartySubCommand>
pPlayer
- The player who executed the command.args
- The arguments which were given by the player.