isReady

fun isReady(key: K): Boolean

Returns whether the specified key is ready to be used.

A key is ready if its cooldown has expired or if no cooldown was ever set for it.

Return

true if the key is ready, false otherwise

Parameters

key

the key to check