Package top.focess.qq
Class FocessQQ.CommandLine
- java.lang.Object
-
- top.focess.qq.FocessQQ.CommandLine
-
-
Constructor Summary
Constructors Constructor Description CommandLine()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Future<Boolean>exec(String command)Execute command usingCommandSender.CONSOLEstatic Future<Boolean>exec(CommandSender sender, String command)Execute command with senderstatic Future<Boolean>exec(CommandSender sender, String command, IOHandler ioHandler)Execute command with sender executing and ioHandler receiving
-
-
-
Method Detail
-
exec
@NotNull public static Future<Boolean> exec(String command)
Execute command usingCommandSender.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 executorcommand- 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 executorcommand- the command CommandSender executes.ioHandler- the receiver- Returns:
- a Future representing pending completion of the command
-
-