Class ReloadCommandAbstract
java.lang.Object
com.github.theword.queqiao.tool.command.subCommand.ReloadCommandAbstract
- All Implemented Interfaces:
SubCommand
-
Constructor Details
-
ReloadCommandAbstract
public ReloadCommandAbstract()
-
-
Method Details
-
getName
获取命令名称- Specified by:
getName
in interfaceSubCommand
- Returns:
- reload
-
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
reload
-
getPermissionNode
获取命令权限节点- Specified by:
getPermissionNode
in interfaceSubCommand
- Returns:
- 权限节点
-
execute
Description copied from interface:SubCommand
执行命令- Specified by:
execute
in interfaceSubCommand
- Parameters:
commandReturner
- 命令执行者
-
execute
重载 WebSocket reload 命令调用- Specified by:
execute
in interfaceSubCommand
- Parameters:
isModServer
- 是否为 ModServercommandReturner
- 命令执行者
-