Listener Cooldown (Expression) — skLambda
Addon: skLambda · Category: Expression · Since: 1.2.0
Syntax
[the] cooldown of %listener%Description
A listener's `cooldown:` debounce window, the span ignored after each accepted trigger. Forms: `cooldown of %listener%` and `%listener%'s cooldown`. Supports `add`, `set`, and `remove`; a zero (or shorter) value disables the cooldown.
Examples
set {shield} to listener for block break:
cooldown: 3 seconds
on trigger:
broadcast "cooldown is %cooldown of {shield}%"
register {shield}
set cooldown of {shield} to 5 seconds