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
This mod is not opted-in to receive Donation Points
Changelogs
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.
Version 1.5
Fixed for the new update.
Version 1.4
Adds a new field `log` to the jobs.
Version 1.3
Updated for the new game version.
Version 1.2
Adds auto update for missing fields to the cron.yaml.
Fixes loading messages being sent to the Discord connector.
Fixes errors when deleting yaml files.
Fixes emptry cron_track.yaml being created.
Version 1.1
Adds support for join jobs.
Adds support for Discord Connector.
Adds support for time zones.
Adds new config options (timezone, interval, logJobs, logZone, logJoin, discordConnector).
Changes schedule and inactive conditions to be AND instead of OR (so both must apply instead of one of them).
Fixes error for some schedules.
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.