Class ReloadCommandAbstract

java.lang.Object
com.github.theword.queqiao.tool.command.subCommand.ReloadCommandAbstract
All Implemented Interfaces:
SubCommand

public abstract class ReloadCommandAbstract extends Object implements SubCommand
  • Constructor Details

    • ReloadCommandAbstract

      public ReloadCommandAbstract()
  • Method Details

    • getName

      public String getName()
      获取命令名称
      Specified by:
      getName in interface SubCommand
      Returns:
      reload
    • getPrefix

      public String getPrefix()
      获取命令前缀

      用于遍历时判断前驱后继

      前缀为命令头则代表根命令

      Specified by:
      getPrefix in interface SubCommand
      Returns:
      BaseConstant.COMMAND_HEADER
    • getDescription

      public String getDescription()
      获取命令描述
      Specified by:
      getDescription in interface SubCommand
      Returns:
      重载配置文件并重新连接所有 Websocket Client
    • getUsage

      public String getUsage()
      获取命令用法
      Specified by:
      getUsage in interface SubCommand
      Returns:
      使用:/BaseConstant.COMMAND_HEADER reload
    • getPermissionNode

      public String getPermissionNode()
      获取命令权限节点
      Specified by:
      getPermissionNode in interface SubCommand
      Returns:
      权限节点
    • execute

      public void execute(Object commandReturner)
      Description copied from interface: SubCommand
      执行命令
      Specified by:
      execute in interface SubCommand
      Parameters:
      commandReturner - 命令执行者
    • execute

      public void execute(Object commandReturner, boolean isModServer)
      重载 WebSocket reload 命令调用
      Specified by:
      execute in interface SubCommand
      Parameters:
      isModServer - 是否为 ModServer
      commandReturner - 命令执行者