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