Documentation
Minecron Documentation
Below are the configurable options Minecron has.
config.yml
This is the main and currently only configuration file for Minecron. All task adding/removing/editing is done in this file. (Command support is planned.)
updateCheck
When this option is true, Minecron will check if there is a newer version on BukkitDev. I highly recommend you keep this at true so you won't miss out on new features or critical bug fixes.
tasks
This section of the configuration file is where you define all the tasks you want to be executed. If you want to create more than one task, copy everything from 'taskOne' and paste it below.
taskOne:
This is just an example task name, the name does not matter as long as you only use one name once.
enabled: true
Is this task enabled? If this is false, this task will not run.
taskType: WEEK_RECURRING
This determines what type of task this is. Currently Minecron only supports WEEK_RECURRING, which can do a task at the most once every day of the week.
days:
What days of the week should this task run? Remember to write the days in full capital otherwise it will not work.
time:
The hour and minute you would like this task to run on the days specified. Please remember that the hour is in 24 hour format. So if you wanted to execute a task at 1:00PM, you would enter 13 for the hour field.
NOTE: Times are based on the server's clock. You may need to adjust your times accordingly.
execute:
When the task is ran, what commands would you like executed? There is no limit on the number of commands you can execute however, your server may not be able to handle large amounts of commands.
Variables: Here are a list of variables you can use when executing commands.
- Variables will be coming soon. :)
I'm having a hard time getting this to work. I was wondering about the server time so I created 24 jobs in the following format:
I duplicated the entire job and incremented name, hour, and execute so I would know my time offset. I also waited over an hour to make sure my minutes weren't off (even thought that's incredibly unlikely), but I never once saw the "say #" message in the logs. I was logged into the game when the minute mark crossed, but I didn't stay in the game the whole hour.
Every time I make a change to the config.yml file run:
/minecron reload
and I see the output:
I'm running:
I also have a handful of other plugins installed, too, and I can list them if needed. I can also share my entire config.yml file if needed too.
Thoughts on what I might be doing wrong?
Thanks, mikedave
@mikedave
Sorry for the month late reply. (I rarely check page comments.)
If I can still help out, do you get any errors or anything in the console?