Skip to main content

In-game

Getting started

After you have created your script, the JSON file needs to be placed inside the server files. The file should be placed inside the folder plugins/WorldOfWonders/scripts/advanced/.

Loading a script

A script can manually be loaded into cache by using the in-game command /script load "<path>". The <path> argument should be the path of the location of your script file relative to the plugins/WorldOfWonders/scripts/advanced/ folder without the .json extension.

E.g. /script load "dansemacabre/hoofd_show" to load the script located at plugins/WorldOfWonders/scripts/advanced/dansemacabre/hoofd_show.json.

tip

The command framework used by Minecraft does not properly support string arguments that contain /. Therefore, the <path> argument should be surrounded by quotation marks.

Starting a script

A script can manually be started by using the in-game command /script start <namespace>. The command should auto-complete the <namespace> argument. The <namespace> argument corresponds to the namespace field defined in the script file.

Reloading a script

A script can be reloaded into cache by using the in-game command /script reload <namespace>. The command should auto-complete the <namespace> argument. The <namespace> argument corresponds to the namespace field defined in the script file.

info

A script will fail to reload if no changes were found in the file.