Class ClientCommandAbstract
java.lang.Object
com.github.theword.queqiao.tool.command.subCommand.ClientCommandAbstract
- All Implemented Interfaces:
SubCommand
- Direct Known Subclasses:
ListCommandAbstract
,ReconnectCommandAbstract
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ClientCommandAbstract
public ClientCommandAbstract()
-
-
Method Details
-
getName
获取命令名称- Specified by:
getName
in interfaceSubCommand
- Returns:
- client
-
getPrefix
获取命令前缀用于遍历时判断前驱后继
为空字符串则代表根命令
- Specified by:
getPrefix
in interfaceSubCommand
- Returns:
BaseConstant.COMMAND_HEADER
-
getDescription
获取命令描述- Specified by:
getDescription
in interfaceSubCommand
- Returns:
- Websocket Client 命令
-
getUsage
获取命令用法- Specified by:
getUsage
in interfaceSubCommand
- Returns:
- 使用:/
BaseConstant.COMMAND_HEADER
client
-
getPermissionNode
获取命令权限节点- Specified by:
getPermissionNode
in interfaceSubCommand
- Returns:
BaseConstant.COMMAND_HEADER
.client
-
execute
执行命令Pass
- Specified by:
execute
in interfaceSubCommand
- Parameters:
commandReturner
- 命令执行者boolVar
- 布尔值占位符
-
execute
执行命令Pass
- Specified by:
execute
in interfaceSubCommand
- Parameters:
commandReturner
- 命令执行者
-