@minecraft/server
    Preparing search index...

    Class PlayerLeaveBeforeEventSignalBeta

    Manages callbacks that are connected to a player leaving the world.

    Index

    Methods

    • Beta

      Parameters

      Returns (arg0: PlayerLeaveBeforeEvent) => void

      Closure that is called with restricted-execution privilege.

      Adds a callback that will be called when a player leaves the world.

      This function can't be called in restricted-execution mode.

      This function can be called in early-execution mode.

    • Beta

      Parameters

      Returns void

      Removes a callback that will be called when a player leaves the world.

      This function can't be called in restricted-execution mode.

      This function can be called in early-execution mode.