Sueta
CO

Cooldowns

1.1

Developer API for per user cooldowns

·Plugin
  1. 1.1latestAdd callbacksMay 22, 2020
    You can now supply a callback that'll be executed when the cooldown has expired. This does not persist through restarts. Code (Java): public void setUserCooldown ( final UUID player, final String id, TimeUnit timeUnit, long cooldown, BiConsumer < UUID, String > function ) ; CooldownManager#setUserCooldown ( uuid, id, timeUnit, cooldown, ( playerUUID, cooldownId ) -> { // Do stuff } ) ;
    3 downloads
  2. 1.0May 21, 2020
    6 downloads

Similar projects

Plugin →