isOnCooldown

fun isOnCooldown(key: String, delay: Long): Boolean

Checks if the given key is currently on cooldown.

Return

True if the key is still on cooldown, false otherwise.

Parameters

key

The unique key associated with the cooldown (typically the player’s name).

delay

The cooldown duration in milliseconds.