Skip to content
Flint
Documentation

cooldowns

modulePaperVelocity

Simple cooldowns keyed by any text, e.g. "heal:" + player.uuid.

import cooldowns

Functions 5

True if the cooldown is over, and starts it again. Use: if not cooldowns.ready("heal:" + player.uuid, 30 seconds): return

Starts (or restarts) a cooldown without checking it.

True while the cooldown is still running.

Seconds left on a cooldown (0 when it is over). Good with time.pretty().

Ends a cooldown now.