Has Item Cooldown (Condition) — Skript

Addon: Skript · Category: Condition · Since: 2.8.0, 2.12 (cooldown group)

Syntax

%players% (has|have) [([an] item|a)] cooldown (on|for) %itemtypes%

Description

Checks whether a cooldown is active on the specified item for a specific player. If the provided item has a cooldown group component specified, the cooldown group will take priority. Otherwise, the cooldown of the item material will be used.

Examples

if player has player's tool on cooldown:
	send "You can't use this item right now. Wait %item cooldown of player's tool for player%"

View source