Class PartyCommand
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Command
-
- de.simonsator.partyandfriends.api.TopCommand<PartySubCommand>
-
- de.simonsator.partyandfriends.party.command.PartyCommand
-
- All Implemented Interfaces:
net.md_5.bungee.api.plugin.Listener
public class PartyCommand extends TopCommand<PartySubCommand>
The /party command
-
-
Field Summary
-
Fields inherited from class de.simonsator.partyandfriends.api.TopCommand
subCommands
-
-
Constructor Summary
Constructors Constructor Description PartyCommand(java.lang.String[] pCommandNames, java.lang.String pPrefix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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.void
onTabComplete(net.md_5.bungee.api.event.TabCompleteEvent pEvent)
-
Methods inherited from class de.simonsator.partyandfriends.api.TopCommand
addCommand, count, execute, getPrefix, getSubCommand, isPlayer, playerComplete, sort, tabComplete, topCommandComplete
-
-
-
-
Method Detail
-
getInstance
public static PartyCommand getInstance()
-
onCommand
protected void onCommand(OnlinePAFPlayer pPlayer, java.lang.String[] args)
Description copied from class:TopCommand
Decides if a subcommand should be called and if which one. If no subcommand should be called it shows the help of the commands.- Specified by:
onCommand
in classTopCommand<PartySubCommand>
- Parameters:
pPlayer
- The player who executed the command.args
- The arguments which were given by the player.
-
onTabComplete
public void onTabComplete(net.md_5.bungee.api.event.TabCompleteEvent pEvent)
-
-