addCooldown

open fun addCooldown(@NotNull player: @NotNull OfflinePlayer, @NotNull type: @NotNull String, length: Int, @NotNull timeUnit: @NotNull TimeUnit)(source)

Adds a player to the cooldown.

Parameters

player

The player to add to the cooldown.

type

The type of cooldown to add.

length

The length of the cooldown in the specified time unit.

timeUnit

The time unit of the `length` parameter.


open fun addCooldown(@NotNull guild: @NotNull Guild, @NotNull type: @NotNull String, length: Int, @NotNull timeUnit: @NotNull TimeUnit)(source)

Adds a guild to the cooldown.

Parameters

guild

The guild to add to the cooldown.

type

The type of cooldown to add.

length

The length of the cooldown in the specified time unit.

timeUnit

The time unit of the `length` parameter.


open fun addCooldown(@NotNull cooldownType: @NotNull Cooldown.Type, @NotNull cooldownOwner: @NotNull UUID, length: Int, @NotNull timeUnit: @NotNull TimeUnit)(source)

Adds a cooldown.

Parameters

cooldownType

The type of cooldown to add.

cooldownOwner

The owner UUID of the cooldown.

length

The length of the cooldown in the specified time unit.

timeUnit

The time unit of the `length` parameter.