Timed Execute - 定时执行

汉化 Timed Execute - 定时执行 0.7.4

这是一个非常简单的插件,可以每隔(X)秒执行许多指令!

注意:对于TimerOnce配置,必须始终在最后执行指令(仅在希望从TimerOnce的顶部重新开始时执行"resettimeronce"或"reset.timeronce"指令)。请记住,此计时器在使用重置指令之前一直有效。

注意2:可以在默认配置中看到,TimerOnce的命令将在60秒后执行,因此第二个命令也将在60秒后执行!(60 + 60=120)这是连续的计时器,因此您必须为第二个指令添加额外的秒数!

注意(现实时间计时器):时间必须是"HH:mm:ss"(时:分:秒)的形式,例如"18:30:00"。

配置文件​

JSON:
{
  "EnableInGameTime-Timer": true,
  "EnableRealTime-Timer": true,
  "EnableTimerOnce": true,
  "EnableTimerRepeat": true,
  "InGameTime-Timer": {
    "01:00": "weather rain",
    "12:00": "command 1",
    "15:00": "command 2"
  },
  "RealTime-Timer": {
    "16:00:00": "command1 arg",
    "16:30:00": "command2 arg",
    "17:00:00": "command3 arg",
    "18:00:00": "command4 arg"
  },
  "TimerOnce": {
    "command1 'msg'": 60,
    "command2 'msg'": 120,
    "command3 arg": 180,
    "reset.timeronce": 181
  },
  "TimerRepeat": {
    "command1 arg": 300,
    "command2 'msg'": 300
  }
}
  • "EnableInGameTime-Timer" - 启用游戏时间计时器
  • "EnableRealTime-Timer" - 启用现实时间计时器
  • "EnableTimerOnce" - 启用一次性计时器
  • "EnableTimerRepeat" - 启用循环计时器
  • "InGameTime-Timer" - 游戏内时间计时器列表
    • "01:00": "weather rain", - 在游戏时间的1点执行weather rain指令
  • "RealTime-Timer" - 显示时间计时器列表
    • "16:00:00": "command1 arg", - 在现实时间的16点执行command1 arg指令
    • 该时间为服务器的系统时间
  • "TimerOnce" - 一次性执行指令
    • "command1 'msg'": 60, - 在插件加载60秒后执行command1 'msg'指令
    • 使用指令 reset.timeronce 可以重置一次性计时器
  • "TimerRepeat" - 循环执行指令
    • "command1 arg": 300, - 每隔300秒执行一次ommand1 arg指令
作者
对味儿
下载
14
查看
496
文件类型
cs
文件大小
7.9 KB
文件Hash
aae1e46187426a5d0905d816b331a8a8
首次发布
最后更新
评分
0.00 星 0评价

来自对味儿的更多资源

分享资源

标签
工具 管理