ServerScriptRun
class ServerScriptRunServerScripts.on("ServerScript.NOTE_SAVED", "is") { player, run -> player.message("Note ${run.int(0)} saved: ${run.string(1)}") Logger.info("${run.script} with ${run.arguments}")}script
Section titled “script”val script: Stringarguments
Section titled “arguments”val arguments: List<Any>fun int(index: Int): Intstring
Section titled “string”fun string(index: Int): String