setItemCooldown

open override fun setItemCooldown(player: Player, item: Material, ticks: Int)

Sets a fake item cooldown for the player.

Parameters

player

The target player.

item

The item material to apply the cooldown to.

ticks

The duration of the cooldown in ticks.