BattleScheduler

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


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    43138
  • Created
    Aug 10, 2012
  • Last Released File
    Aug 27, 2012
  • Total Downloads
    2,232
  • License

Categories

Members

Recent Files