- 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:
You can also remove cooldowns like so:
You can check if a cooldown exists like this:
The possibilites are limitless!
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);
Code:
//The first argument being the cooldown identifier
CooldownAPI.removeCooldown("civiled.warp.pvp");
Code:
//The first argument is the cooldown identifier
CooldownAPI.hasCooldown("civiled.warp.pvp");