Allows executing commands automatically on the server.
Install on the server.
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.12
Adds dependency to YamlDotnet package.
Fixed to work with the new Discord Connector mod update.
Version 1.11
Adds a new file "cron_last.yaml" to track the last time job were checked.
This prevents running all jobs on server restart.
Adds a new field `useGameTime` to run jobs based on the in-game time.
Adds a new field `commands` to run multiple commands.
Adds new player related parameters to match Expand World Prefabs mod.
Fixes join job triggering on player respawn.
Version 1.10
Fixed for the new update.
Version 1.9
Adds support for changing the Discord Connector message type.
Adds a new setting "logSkipped" to allow disabling logging of skipped jobs.
Changes the default Discord Connector mesasge type from "Other" to "cronjob".
Version 1.8
Fixed for the new update.
Version 1.7
Fixes parameters not working for join jobs.
Version 1.6
Adds a warning for zone jobs without any parameters.
Adds a new field `avoidPlayers` to not run zone jobs when players are nearby.
Adds support for seconds in the cron schedule.
Adds new fields `biomes`, `locations`, `objects` and `bannedObjects` to filter zone jobs.
Changes the parameter format from `$$` to `<>`. Old commands still work but cause a warning.
Removes the field `inactive` because it caused confusion and didn't work with multiple jobs per zone.
Cron Job
Allows executing commands automatically on the server.
After starting the server, cron.yaml and cron_track.yaml files are created in the config folder.
cron_track.yaml stores the last time a zone was visited. Editing this file is not recommended.
cron.yaml contains the jobs. Jobs are checked every 10 seconds. To understand cron schedules better, check out crontab.guru.
Field jobs includes general jobs. For example:
jobs: - command: broadcast center Hello! chance: 0.5 schedule: "0 9 * * *" would have a 50% chance of sending a message every day at 9:00 (requires Server Devcommands mod). Times are always in UTC so convert your time zone to that.