getCooldown

fun getCooldown(action: String, player: String): Cooldown?

Retrieves the cooldown object for a specific action and player.

Return

The cooldown object if present, null otherwise.

Parameters

action

The action to retrieve the cooldown for.

player

The player's identifier.