isCooldownActive

fun isCooldownActive(action: String, player: String): Boolean

Checks if a cooldown is active for a specific action and player. If the cooldown has expired, it is removed from the system.

Return

True if the cooldown is active, false otherwise.

Parameters

action

The action to check.

player

The player's identifier.