Class MSG
java.lang.Object
net.md_5.bungee.api.plugin.Command
de.simonsator.partyandfriends.api.TopCommand
de.simonsator.partyandfriends.api.OnlyTopCommand
de.simonsator.partyandfriends.friends.commands.MSG
- All Implemented Interfaces:
 net.md_5.bungee.api.plugin.TabExecutor
Will be executed on /msg
- 
Field Summary
Fields inherited from class de.simonsator.partyandfriends.api.TopCommand
subCommands - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic MSGprotected voidonCommand(OnlinePAFPlayer pPlayer, String[] args) Decides if a subcommand should be called and if which one.voidsend(OnlinePAFPlayer pPlayer, String[] args, int type) Send a message from a sender to a receiverMethods inherited from class de.simonsator.partyandfriends.api.OnlyTopCommand
onTabCompleteMethods inherited from class de.simonsator.partyandfriends.api.TopCommand
addCommand, execute, getPrefix, getSubCommand, isPlayer, playerComplete, sort, tabCompleteMethods inherited from class net.md_5.bungee.api.plugin.Command
canEqual, equals, getAliases, getName, getPermission, getPermissionMessage, hashCode, hasPermission, setPermissionMessage, toString 
- 
Constructor Details
- 
MSG
Initials the command- Parameters:
 friendsAliasMsg- The aliases for the command /msg
 
 - 
 - 
Method Details
- 
getInstance
 - 
onCommand
Description copied from class:TopCommandDecides 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:
 onCommandin classTopCommand- Parameters:
 pPlayer- The player who executed the command.args- The arguments which were given by the player.
 - 
send
Send a message from a sender to a receiver- Parameters:
 pPlayer- Senderargs- Argumentstype- The type of the used command either 0 if the player used the command /friend msg or 1 if the player used the command /msg
 
 -