Delay (Effect) — Skript

Addon: Skript · Category: Effect · Since: 1.4

Syntax

(wait|halt) [for] %timespan%

Description

Delays the script's execution by a given timespan. Please note that delays are not persistent, e.g. trying to create a tempban script with <code>ban player → wait 7 days → unban player</code> will not work if you restart your server anytime within these 7 days. You also have to be careful even when using small delays!

Examples

wait 2 minutes
halt for 5 minecraft hours
wait a tick

View source