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".
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)
-
View User Profile
-
Send Message
Posted Aug 10, 2013@alkarinv
any luck yet mate?
-
View User Profile
-
Send Message
Posted Aug 7, 2013@alkarinv
if you can pull this one off i will love you for ever
i have not found any plugin that does it yet.
-
View User Profile
-
Send Message
Posted Aug 6, 2013@farkinklown
Interesting.. harder to specify.. but I guess i could do that.
-
View User Profile
-
Send Message
Posted Aug 6, 2013ok im gunna see if your as clever as i need you to be, havent found one yet, but can u make a scheduler that will only run the command shen there are "x" amount of players online???
-
View User Profile
-
Send Message
Posted May 31, 2013@o0Julia0o
That's a good idea! But, no :)
If you have a particular use in mind I could probably make it happen though. What are you trying to do?
-
View User Profile
-
Send Message
Posted May 31, 2013can you make event-management? Like: -message x on DAYTIME y or: -mesage y on DAYTIME y & if PLAYER x is online
thx
Julia :)
-
View User Profile
-
Send Message
Posted Sep 19, 2012@Manuestaire
Sorry I completely missed this comment. I have subscriptions turned on now, which emails when comments are made, so I shouldnt in the future.
I posted above some more information about cron, but its a way of scheduling that is very flexible. Best to read up about it, it's better than me trying to explain.
The plugin name is needed b/c if no other arguments are supplied, it can try to run the plugin itself through the Runnable interface. Most plugins dont have this, or need it. But I orginally wrote this for my own plugins many of which could be run without arguments.
-
View User Profile
-
Send Message
Posted Sep 13, 2012I don't wanna be complainer about information, but if you could add some more examples... What are the *? What is plugin name needed for?
-
View User Profile
-
Send Message
Posted Aug 27, 2012@Intangir
It works, but I had an incorrect command example above. So my bad...
You need to name a valid plugin right after the time. version 1.2.6 is uploaded and when it clears you can specify that as "default".
The reason of specifying a plugin is that many of my plugins can be run w/o specifying a command.
Sorry for the confusion.
-
View User Profile
-
Send Message
Posted Aug 24, 2012does this work? every event i try to enable fails
like /save-all
or /restart...
or even /say hi