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:
getNamein interfaceSubCommand- Returns:
- server
-
getPrefix
获取命令前缀用于遍历时判断前驱后继
为空字符串则代表根命令
- Specified by:
getPrefixin interfaceSubCommand- Returns:
BaseConstant.COMMAND_HEADER
-
getDescription
获取命令描述- Specified by:
getDescriptionin interfaceSubCommand- Returns:
- Websocket Server 命令
-
getUsage
获取命令用法- Specified by:
getUsagein interfaceSubCommand- Returns:
- 使用:/
BaseConstant.COMMAND_HEADERserver
-
getPermissionNode
获取命令权限节点- Specified by:
getPermissionNodein interfaceSubCommand- Returns:
BaseConstant.COMMAND_HEADER.server
-
execute
执行命令位于本命令 pass
- Specified by:
executein interfaceSubCommand- Parameters:
commandReturner- 命令执行者boolVar- 布尔值占位符
-
execute
执行命令位于本命令 pass
- Specified by:
executein interfaceSubCommand- Parameters:
commandReturner- 命令执行者
-