资源图标

LL3 SchedTask - 定时任务 2026-04-22

请登录后获取
版权类型
原创
版权链接
#
此插件可以定时执行命令,支持cron表达式
JSON:
{
  "version": 1,
  "logLevel": 3,
  "language": "zh_CN",
  "enabled": true,
  "logCommandOutput": false,//是否返回命令的执行结果
  "tasks": [
    {
      "id": "startup_notice",
      "enabled": true,
      "cron": "0 0 * * *",
      "command": "say 服务器启动完成,定时任务系统已上线",//执行的命令
      "commands": [],//允许多组命令
      "runOnServerStarted": true,//是否开服时就执行
      "stopOnError": false,//多命令任务里,某条命令失败后是否停止后续命令
      "logCommandOutput": null//是否返回命令的执行结果,为null默认遵守全局
    },
    {
      "id": "autosave_every_15m",
      "enabled": true,
      "cron": "*/15 * * * *",
      "command": "save all",
      "commands": [],
      "runOnServerStarted": false,
      "stopOnError": false,
      "logCommandOutput": null
    },
    {
      "id": "noon_broadcast",
      "enabled": true,
      "cron": "0 12 * * *",
      "command": "list",
      "commands": [],
      "runOnServerStarted": false,
      "stopOnError": false,
      "logCommandOutput": true
    },
    {
      "id": "evening_broadcast",
      "enabled": true,
      "cron": "0 20 * * *",
      "command": "say 晚上好,祝大家游玩愉快",
      "commands": [],
      "runOnServerStarted": false,
      "stopOnError": false,
      "logCommandOutput": null
    },
    {
      "id": "daily_maintenance",
      "enabled": true,
      "cron": "0 4 * * *",
      "command": "",
      "commands": [
        "say 每日维护开始,请勿进行重要操作",
        "save hold",
        "save query",
        "save resume",
        "say 每日维护完成"
      ],
      "runOnServerStarted": false,
      "stopOnError": true,
      "logCommandOutput": null
    },
    {
      "id": "weekly_sunday_notice",
      "enabled": true,
      "cron": "0 30 3 * * SUN",
      "command": "",
      "commands": [
        "say 今天是周日,准备执行例行巡检",
        "list"
      ],
      "runOnServerStarted": false,
      "stopOnError": false,
      "logCommandOutput": true
    }
  ]
}
作者
秘制小汉堡
价格
30.00金粒
下载
6
查看
170
首次发布
最后更新

评分

0.00 星 0 次评分
后退
顶部 底部