Class ExecuteCommand

All Implemented Interfaces:
GenericParameter

@PowerNukkitXOnly @Since("1.19.20-r2") public class ExecuteCommand extends VanillaCommand
  • Field Details

  • Constructor Details

    • ExecuteCommand

      public ExecuteCommand(String name)
  • Method Details

    • execute

      public int execute(CommandSender sender, String commandLabel, Map.Entry<String,ParamList> result, CommandLogger log)
      Description copied from class: Command
      Execute int.
      Overrides:
      execute in class Command
      Parameters:
      sender - 命令发送者
      commandLabel - the command label
      result - 解析的命令结果
      log - 命令输出工具
      Returns:
      int 返回0代表执行失败, 返回大于等于1代表执行成功