Class FriendCommand


  • public class FriendCommand
    extends Command
    • Constructor Detail

      • FriendCommand

        public FriendCommand()
    • Method Detail

      • init

        public void init()
        Description copied from class: Command
        Used to initialize the command (the primary goal is to define the default executors)
        Specified by:
        init in class Command
      • usage

        public void usage​(CommandSender sender,
                          IOHandler ioHandler)
        Description copied from class: Command
        Used to print help information when execute this command with wrong arguments or the executor returns CommandResult.ARGS
        Specified by:
        usage in class Command
        Parameters:
        sender - the executor which need to print help information
        ioHandler - the receiver which need to print help information