Interface in @minecraft/server
The plugin is about to be unloaded, by a reload or the server stopping.
import type { ShutdownEvent } from '@minecraft/server';Subscribe to it with system.beforeEvents.shutdown.
Example
Section titled “Example”import { system, type ShutdownEvent } from '@minecraft/server';
system.beforeEvents.shutdown.subscribe((event: ShutdownEvent) => { console.log('shutdown');});import { system } from '@minecraft/server';
system.beforeEvents.shutdown.subscribe((event) => { console.log('shutdown');});Used by
Section titled “Used by”SystemBeforeEvents.shutdown, ShutdownBeforeEventSignal.subscribe, ShutdownBeforeEventSignal.unsubscribe