screeper-project/action-bundle

安装: 11

依赖: 1

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

dev-master 2014-10-30 20:22 UTC

This package is not auto-updated.

Last update: 2024-09-24 02:03:31 UTC


README

开发中

Screeper

用法

添加操作

  • $command 对应要执行的命令,格式化后的参数对应 %...% 之间的参数。
  • $parameters 按如下方式列出每个参数的值:array('param1' => array("value" => value1), 'param2' => array("value" => value2)....) 如果参数是别名或 UUID,它可以引用一个玩家(如果已启用并配置了 PlayerBundle 模块),以避免与别名更改相关的问题,则指定的参数将为 Player 类型,value 的形式为 array('value' => PlayerEntity, 'type' => 'pseudo' 或 'uuid').
  • $options 定义命令的选项
    • 'date_execution':命令的执行日期(默认:尽早执行)
    • 'reboot':允许或禁止在命令失败时重启命令(默认:重启激活)
    • 'server':允许指定执行操作的服务器(默认:'default' 服务器)
    • 'description':允许提供注释或命令的描述。