CooldownAPI

CooldownAPI 1.1

Compatible API Versions
1.0.7
Contributors
Civiled
With Cooldown API you can easily create cooldowns and timers!

Creating a cooldown is as simple as this:
Code:
//First argument is the cooldown identifier
//Second argument is the time in seconds
CooldownAPI.addCooldown("civiled.warp.pvp", 100);
You can also remove cooldowns like so:
Code:
//The first argument being the cooldown identifier
CooldownAPI.removeCooldown("civiled.warp.pvp");
You can check if a cooldown exists like this:
Code:
//The first argument is the cooldown identifier
CooldownAPI.hasCooldown("civiled.warp.pvp");
The possibilites are limitless!
Author
Denic
Downloads
1,612
Views
2,422
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Denic

Latest updates

  1. New Methods

    Added the following: Time remaining Add more time Remove some time Update the time
Top