Enable/Disable/Unload/Reload Script (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.4, 2.10 (unloading)

Syntax

((enable|load)|reload|disable|unload) script [file|named] %string% [with errors]

Description

Enables, disables, unloads, or reloads a script.

Disabling a script unloads it and prepends - to its name so it will not be loaded the next time the server restarts. If the script reflection experiment is enabled: unloading a script terminates it and removes it from memory, but does not alter the file.

Examples

reload script "test"
enable script file "testing"
unload script file "script.sk"
set {_script} to the script "MyScript.sk"
reload {_script}

View source