The data available before a player joins the world.

Constructors

Properties

Methods

Constructors

Properties

name: string

The player's name

persistentId: string

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

Methods

  • 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

  • Returns boolean

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