Skip to content

@minecraft/server


@minecraft/server / SystemBeforeEvents

Class: SystemBeforeEvents ​

Defined in: @minecraft/server/index.d.ts:20609

A set of events that fire before an actual action occurs. In most cases, you can potentially cancel or modify the impending event. Note that in before events any APIs that modify gameplay state will not function and will throw an error.

Properties ​

shutdown ​

readonly shutdown: ShutdownBeforeEventSignal

Defined in: @minecraft/server/index.d.ts:20616

Remarks ​

This property can be read in early-execution mode.


startup ​

readonly startup: StartupBeforeEventSignal

Defined in: @minecraft/server/index.d.ts:20622

Remarks ​

This property can be read in early-execution mode.