• Gets a player by their name.

    Parameters

    • playerName: string

      The player's name.

    Returns undefined | Player

    The player if found, otherwise undefined.