Time (Condition) — Skript

Addon: Skript · Category: Condition · Since: 2.0

Syntax

%date% (was|were)( more|(n't| not) less) than %timespan% [ago]

Description

Tests whether a given <a href='#date'>real time</a> was more or less than some <a href='#timespan'>time span</a> ago.

Examples

command /command-with-cooldown:
	trigger:
		{command::%player's uuid%::last-usage} was less than a minute ago:
			message "Please wait a minute between uses of this command."
			stop
		set {command::%player's uuid%::last-usage} to now
		# ... actual command trigger here ...

View source