You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added jvm-npm to scriptrunner
Scripts can import other scripts with require. E.g. require('actions') to import the global action helper or require('./lib/somelib') to include a library from a folder lib relative to the script location.
scriptrunner checks all mods for runnable scripts
Scripts can be packaged as a standalone mods using the SimpleMod class name and the javascript files in the right folder. No Java coding needed.
The searched folders are similar to the scriptrunner folders: mods/modname/scripts/hookname. e.g. mods/mymod/scripts/onPlayerMessage