@minecraft/server-admin
    Preparing search index...

    Class AsyncPlayerJoinBeforeEventBeta

    The data available before a player joins the world.

    Index

    Properties

    name: string

    The player's name

    persistentId: string

    An identifier that can be used to identify a player across sessions.

    Methods

    • Beta

      Parameters

      • Optionalreason: string

      Returns void

      Call this to disconnect a player. They will be allowed to try to join again.

      This function can throw errors.

      DisconnectedError

    • Beta

      Returns boolean

      Will return true if the player is still waiting to join the world. If they disconnect then it will return false.