Skip to content

Cooldown System

Loris P edited this page Jan 5, 2023 · 1 revision

Useful to know

The lib's custom cooldown system is better than the one from Minecraft. It work with seconds, not ticks. It does have method for having easely the cooldown, change, substract, add, etc...

Add cooldown

Function to use :

Cooldown.addCooldown(player, item, seconds);

Remove cooldown

Cooldown.removeCooldown(player, item);

Add to current cooldown

Cooldown.addToCooldown(int toAdd);

Substract from the current cooldown

Cooldown.substractCooldown(int toSubstract);

Clone this wiki locally