startCooldown

fun startCooldown(action: String, player: String, duration: Double)

Starts a cooldown for a specific action and player.

Parameters

action

The action associated with the cooldown.

player

The player's identifier.

duration

The duration of the cooldown in seconds.