from typing import List
from typing import Set


def read_connections(lines: List[str]) -> Set[str]:
    """
    Reads the player event connection events from
    the log to get the usernames.
    """
    usernames = set()
    for line in lines:
        if line.strip().endswith("connected"):
            usernames.add(line.strip()[:-10])
    return usernames