From fb2602eea8e5bba8de69d80c362b885ec5ab19f8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 7 Dec 2020 05:12:40 +0000 Subject: [PATCH] Merge docs for 'added startup and shutdown events. fixes #586' --- docs/scarpet/Full.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/scarpet/Full.md b/docs/scarpet/Full.md index e8c7e07f..78b53a0d 100644 --- a/docs/scarpet/Full.md +++ b/docs/scarpet/Full.md @@ -3959,6 +3959,13 @@ if it accepts required number of parameters. Global events will be handled once per app that is with `'global'` scope. With `player` scoped apps, each player instance is responsible independently from handling their events, so a global event may be executed multiple times for each player. +### `__on_server_starts()` +Event triggers after world is loaded and after all startup apps have started. It won't be triggered with `/reload`. + +### `__on_server_shuts_down()` +Event triggers when the server started the shutdown process, before `__on_close()` is executed. Unlike `__on_close()`, it doesn't +trigger with `/reload`. + ### `__on_tick()` Event triggers at the beginning of each tick, located in the overworld. You can use `in_dimension()` to access other dimensions from there.