hasCooldown

open fun hasCooldown(@NotNull cooldownType: @NotNull String, @NotNull cooldownOwner: @NotNull UUID): Boolean(source)

Checks if a cooldown is still valid.

Return

true if the cooldown is still valid, otherwise false.

Parameters

cooldownType

the name of the cooldown type.

cooldownOwner

the owner UUID of the cooldown.


open fun hasCooldown(@NotNull cooldownType: @NotNull Cooldown.Type, @NotNull cooldownOwner: @NotNull UUID): Boolean(source)

Check if a cooldown is still valid

Return

`true` if the cooldown is still valid, `false` otherwise.

Parameters

cooldownType

The type of cooldown to check.

cooldownOwner

The owner UUID of the cooldown.