public class MSG extends OnlyTopCommand
subCommands
Constructor | Description |
---|---|
MSG(java.lang.String[] friendsAliasMsg,
java.lang.String pPrefix) |
Initials the command
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
onCommand(OnlinePAFPlayer pPlayer,
java.lang.String[] args) |
Decides if a subcommand should be called and if which one.
|
void |
send(OnlinePAFPlayer pPlayer,
java.lang.String[] args,
int type) |
Send a message from a sender to a receiver
|
canEqual, equals, getAliases, getName, getPermission, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
tabComplete
addCommand, execute, getPrefix, getSubCommand, isPlayer, sort
public MSG(java.lang.String[] friendsAliasMsg, java.lang.String pPrefix)
friendsAliasMsg
- The aliases for the command /msgpPrefix
- The prefix of the commandprotected void onCommand(OnlinePAFPlayer pPlayer, java.lang.String[] args)
TopCommand
onCommand
in class TopCommand
pPlayer
- The player who executed the command.args
- The arguments which were given by the player.public void send(OnlinePAFPlayer pPlayer, java.lang.String[] args, int type)
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