All Implemented Interfaces:

public class MSG extends OnlyTopCommand
Will be executed on /msg
  • Constructor Details

    • MSG

      public MSG(String[] friendsAliasMsg, String pPrefix)
      Initials the command
      friendsAliasMsg - The aliases for the command /msg
  • Method Details

    • getInstance

      public static MSG getInstance()
    • onCommand

      protected void onCommand(OnlinePAFPlayer pPlayer, 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 class TopCommand
      pPlayer - The player who executed the command.
      args - The arguments which were given by the player.
    • send

      public void send(OnlinePAFPlayer pPlayer, String[] args, int type)
      Send a message from a sender to a receiver
      pPlayer - Sender
      args - Arguments
      type - 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