Difference (Expression) — Skript

Addon: Skript · Category: Expression · Since: 1.4

Syntax

difference (between|of) %object% and %object%

Description

The difference between two values Supported types include <a href='#number'>numbers</a>, <a href='./classes/#date'>dates</a> and <a href='./classes/#time'>times</a>.

Examples

if difference between {command::%player%::lastuse} and now is smaller than a minute:
	message "You have to wait a minute before using this command again!"

View source