Sleep Thread (Effect) — SkBee

Addon: SkBee · Category: Effect · Since: 3.15.0

Syntax

(sleep|halt) thread for %timespan%

Description

This effect is used to sleep a thread. This should **NOT** be used on the main server thread.

Examples

on async player connection configure:
	set {-connect::%event-uuid%} to true

	# Do something

	while {-connect::%event-uuid%} is set:
		# Player login will be halted while we wait for something
		sleep thread for 1 tick
	#Player will now connect

View source