On Script Load/Unload (Event) — Skript
Addon: Skript · Category: Event · Since: 2.0
Syntax
[on] [async] [script] (load|init|enable)Description
Called directly after the trigger is loaded, or directly before the whole script is unloaded. The keyword 'async' indicates the trigger can be ran asynchronously,
Event Values
- event-commandsender
Examples
on load:
set {running::%script%} to true
on unload:
set {running::%script%} to false