Hierarchy

Constructors

  • Parameters

    Returns default

Properties

absentPlayers: (undefined | default)[] = []
event: IEventEmitter<default, IPlayerManagerEvents>
players: (undefined | default)[] = []

Methods

  • Parameters

    • Optional playerOptions: Partial<IPlayerOptions>
    • Optional allowSetup: boolean

    Returns default

  • Clears the existing client secret for the player

    Parameters

    • playerIdentifier: string

      Player identifier

    Returns void

  • Get players. Parameters include additional players that may not be relevant, such as ghosts, connecting players, absent players, the dedicated server fake player.

    Returns

    Array of Player objects

    Parameters

    • Optional includeGhosts: boolean

      True to include players that are ghosts

    • Optional includeConnecting: boolean

      True to include players that are connecting

    • Optional includeDedicatedServer: boolean

      True to include the dedicated server fake player

    • Optional includeAbsent: boolean

      True to include the absent players

    Returns default[]

  • Parameters

    • identifier: string
    • includeAbsent: boolean = true

    Returns undefined | default

  • Parameters

    • name: string

    Returns undefined | default

  • Parameters

    • name: undefined | string

    Returns string

  • Removes and deletes a player. Use with caution!

    Parameters

    Returns void

  • Parameters

    Returns void

  • Support loading dedicated server saves & backups in single player games Support loading single player saves in dedicated servers All while not losing data for any players - regardless of if the player was in the server or not at the time of the backup

    Parameters

    Returns Promise<void>

  • Returns void

  • Parameters

    • player: default
    • setLocalIsland: boolean = true

    Returns void

Generated using TypeDoc