Package top.focess.qq

Class FocessQQ.CommandLine

  • Enclosing class:
    FocessQQ

    public static class FocessQQ.CommandLine
    extends Object
    The CommandLine Tool Class can be used to exec command with customize executor, arguments and receiver.
    • Constructor Detail

      • CommandLine

        public CommandLine()
    • Method Detail

      • exec

        @NotNull
        public static Future<Boolean> exec​(String command)
        Execute command using CommandSender.CONSOLE
        Parameters:
        command - the command Console executes.
        Returns:
        a Future representing pending completion of the command
      • exec

        @NotNull
        public static Future<Boolean> exec​(CommandSender sender,
                                           String command)
        Execute command with sender
        Parameters:
        sender - the executor
        command - the command CommandSender executes.
        Returns:
        a Future representing pending completion of the command
      • exec

        @NotNull
        public static Future<Boolean> exec​(CommandSender sender,
                                           String command,
                                           IOHandler ioHandler)
        Execute command with sender executing and ioHandler receiving
        Parameters:
        sender - the executor
        command - the command CommandSender executes.
        ioHandler - the receiver
        Returns:
        a Future representing pending completion of the command