promotional bannermobile promotional banner

BattleScheduler

A cron based scheduler for bukkit commands or Runnable plugins

BattleScheduler

A cron based scheduler to run any bukkit commands or plugins that extend "Runnable". This allows admins from the console or in game to create timers for various events. Also allows suspend/resume options for the timers.

Commands

  • /timer create <time> <plugin name> <event or string of commands>
  • /timer list: see all timers and registered events
  • /timer delete <number>: Delete a timer
  • /timer execute <event>: Execute the given event or command

Examples:

  • timer create * * * * * default myCommand argument1 argument2
  • timer create */15 * * * * default save-all
    • this will save-all every 15 minutes

What did that mean!? What is Cron!?

Cron is a syntax for scheduling, it is very flexible and very powerful ( though maybe a bit confusing at first ). Wikipedia has a good article on it, and there are many examples on the web. Just google "cron examples".

Cron from Wikipedia

Brief cheat sheet from wikipedia.

*    *    *    *    *  command to be executed
┬    ┬    ┬    ┬    ┬
│    │    │    │    │
│    │    │    │    │
│    │    │    │    └─── day of week (0 - 6) (0 is Sunday, or use names)
│    │    │    └──────── month (1 - 12)
│    │    └───────────── day of month (1 - 31)
│    └────────────────── hour (0 - 23)
└─────────────────────── min (0 - 59)

Source

GitHub

The BattleScheduler Team

RisingBuilder tier frameprofile avatar
  • 1
    Followers
  • 14
    Projects
  • 1.3M
    Downloads
Donate

More from _ForgeUser8459491View all