Class HelpCommandAbstract
java.lang.Object
com.github.theword.queqiao.tool.command.subCommand.HelpCommandAbstract
- All Implemented Interfaces:
SubCommand
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HelpCommandAbstract
public HelpCommandAbstract()
-
-
Method Details
-
getName
获取命令名称- Specified by:
getName
in interfaceSubCommand
- Returns:
- help
-
getPrefix
获取命令前缀用于遍历时判断前驱后继
前缀为命令头则代表根命令
- Specified by:
getPrefix
in interfaceSubCommand
- Returns:
BaseConstant.COMMAND_HEADER
-
getDescription
获取命令描述- Specified by:
getDescription
in interfaceSubCommand
- Returns:
- 获取命令帮助
-
getUsage
获取命令用法- Specified by:
getUsage
in interfaceSubCommand
- Returns:
- 使用:/
BaseConstant.COMMAND_HEADER
help
-
getPermissionNode
获取命令权限节点- Specified by:
getPermissionNode
in interfaceSubCommand
- Returns:
BaseConstant.COMMAND_HEADER
.help
-
execute
执行命令 获取所有命令使用方法- Specified by:
execute
in interfaceSubCommand
- Parameters:
commandReturner
- 命令执行者
-
execute
执行命令Pass
- Specified by:
execute
in interfaceSubCommand
- Parameters:
commandReturner
- 命令执行者all
- 布尔值占位符
-