.jv modules
Organize reusable Java code in separate files.
File structure
plugins/Skript/scripts/
welcome.sk
modules/
welcome.jv
welcome.sk:
on join:
run jv "modules/welcome.jv"
modules/welcome.jv:
sender.sendMessage("Welcome!");
Discovery and loading
Paths resolve beside the calling file first, then relative to scripts. The .jv suffix is optional in run jv. The path must be known while parsing; event-dependent dynamic paths are not supported.
Startup and reload scan .jv files and submit precompilation in the background. Modules receive the same context and variable bridge as execute java.
Editing a module
Parsing the calling script captures a Java source snapshot. Reload the calling .sk after editing a .jv file or nested include. The server does not reread the module for every event.
Successful classes survive reload; see compilation and cache.