@minecraft
    正在准备搜索索引...

    类 AsyncPlayerJoinBeforeEvent

    The data available before a player joins the world.

    索引

    属性

    name: string

    The player's name

    persistentId: string

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

    方法

    • 参数

      • 可选reason: string

      返回 void

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

      This function can throw errors.

      DisconnectedError

    • 返回 boolean

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