Sueta

MC-Cron | Scheduler | Jobs | BungeeCord support

1.9.1

Schedule anything, whenever you want! With Event jobs! And now with BungeeCord support

·Plugin

MC-Cron.png
Just like CRON on Linux OS! You can schedule anything, whenever you want! Simple to use! Lightweight with timer (pause) command!

Features.png

  • BungeeCord support
  • Unlimited amount of jobs!
  • Unlimited command per job!
  • Schedule job whenever you want!
  • Event jobs! Join and Quit
  • NEW! Startup commands!
  • /timer command for console (Perform command with pause)
  • Easy to understand and use without any lags!
  • bStats > Check here
  • Video by @ServerMiner (Website: https://serverminer.com)

    YouTube

Command.png

  • /timer <seconds> <command>
  • Run command after X seconds (Maximum is 300 seconds!)
  • Only console can perform this command!

  • /mccron
  • Show info of plugin

  • /mccron reload
  • Reload jobs! Permission: mccron.reload

HtU.png
Adding job:

  • Name you job! For example: myjob
  • jobs:
      myjob: #Name of Job
        time: nothing
        commands:
        - nothing
  • Adding time:
  • If you want to run your job every 10 seconds, time will look like this:
  • jobs:
      myjob:
        time: every 10 seconds #Time of job
        commands:
        - nothing
  • Or run it every hour:
  • jobs:
      myjob:
        time: every hour #Time of job
        commands:
        - nothing
  • or 1 time per month
  • jobs:
      myjob:
        time: every 1 day of month #Time of job
        commands:
        - nothing
  • Adding commands:
  • Commands run Console!
  • You can add multiple commands, like this:
  • jobs:
      myjob:
        time: every 10 minutes #Time of job
        commands:
        - say MyCommand is here!
        - say Running this every 10 minutes!

And now you have your first mc-cron job!

You can create event jobs! Just see config file below

Config file:

jobs:
  save:
    time: every 1 hour
    commands:
    - say Saving world!
    - save-all
    - say Save Complete!
  restart:
    time: every 1 day of week at 6:00
    commands:
    - say Restart in 10 seconds!
    - timer 10 stop
  tps:
    time: every 30 minutes
    commands:
    - tps
event-jobs:
  join-event:
    welcome:
      time: 1
      commands:
      - tell {player} Hello! Welcome here!
    hello:
      time: 5
      commands:
      - say Say hello to {player}!
  quit-event:
    bye:
      time: 5
      commands:
      - say {player} left the game few seconds ago :/
    remember:
      time: 20
      commands:
       - say {player} is no longer here! Be his memory with us
startup:
  commands:
  - say Server was started!
  - timer 60 say Server is online for 1 minute!
  - save-all

tformat.png
MC-Cron job has many time formats!
This time format is used only in scheduled jobs! Event jobs doesn't support this time format!
For example:

Every second: (Can be applied for minutes, hours, days)
time: every 1 second
or
time: every second
Every 1 day of month/week:
time: every 1 day of month
or
time: every 1 day of week

or with exact time:

every day at 6:00
time: at 6:00
or 1 day of month/week
time: every 1 day of week at 6:00

Need help? Contact me on my Discord:
1_A9FdpItfh7lP0R1Q3yDQvA.png

Please, report bugs, errors, ideas into discussion page or PM @The_TadeSK !
Thanks!

Similar projects

Plugin →