CountdownAPI
CountdownAPI
What is it?
The CountdownAPI is an API to help you out with countdowns (obvious :D).
How does it help me as a developer?
It helps you by managing countdowns. Countdowns have names and can be started, paused, resumed and stopped seperatly. You can listen to countdown events (e.g. CoutdownPauseEvent).
How does it help me as an admin?
You can use the following commands to manage the countdowns. But most of the time you don't have to use them. There are primarily made to test the plugins made by developers.
Commands
Note: This commands are only accessable if you are an operator on the server. The commands are made for the developers.
- /countdown help <command>
- Shows the help for the specific command. If the command is not speficied it shows the commands.
- /countdown setup <name> <seconds>
- Creates a new countdown with the specifed name and amount of seconds.
- /countdown start <name>
- Starts the countdown that you have chosen.
- /countdown stop <name>
- Stops the countdown that you have chosen.
- /countdown pause <name>
- Pauses the countdown that you have chosen.
- /countdown resume <name>
- Resumes the countdown that you have chosen.
How to use it in your plugin
TO-DO
Nothing!
@Th3Shad0wOfDeath
Countdown was one part/idea of all ;)
Did you search for previous work?
http://forums.bukkit.org/threads/lib-timerlib-easily-create-delays-cooldowns.92395/ https://forums.bukkit.org/threads/long-delayed-tasks-save-load-tasks-threads.100426/
My repo for that: https://github.com/IDragonfire/DragonTimer