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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waittabCompleteaddCommand, execute, getPrefix, getSubCommand, isPlayer, sortpublic 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)
TopCommandonCommand in class TopCommandpPlayer - 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