Advertisement
Guest User

Cooldown API - EXAMPLE

a guest
Mar 28th, 2020
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. CREATE COOLDOWN
  2. * new Cooldown(name, duration[long]); *
  3. [EXAMPLE]
  4. * new Cooldown("MCMarket", TimeUtils.parse("20s)); *
  5.  
  6. RootAPI::getCooldown # Get cooldown by name
  7. RootAPI::getPlayerCooldowns # Get player active cooldowns
  8.  
  9. Cooldown Events
  10. CooldownPreStartEvent (Cancellable)
  11. CooldownStartEvent (Cancellable)
  12. CooldownExpire Event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement