Sueta
CO

Cooldowns

1.1

Developer API for per user cooldowns

·Plugin

Developer resource to aid in managing per player cooldowns that persist through restarts.
Note that this does nothing on its own and requires another plugin to make use of it.

Everything is a part of the CooldownManager class.

boolean  isOnCooldown  (  UUID uuid,   String   id  )   ;  
 long  getUserCooldown  (  UUID uuid,   String   id  )   ;  
 void  setUserCooldown  (  UUID player,   String   id, TimeUnit timeUnit,  long  cooldown  )   ;  
 void  setUserCooldown  (  UUID player,   String   id, TimeUnit timeUnit,  long  cooldown, BiConsumer  <  UUID, String  >  function  )   ;

You can get the CooldownManager either from the plugin instance or through the bukkit services manager.

Support can be found in my discord .

Similar projects

Plugin →