player

Bedrock player component.

class bedrock_server_manager.core.server.player.ServerPlayers(server: BedrockServer)

Player operations for one Bedrock server.

async scan_log_for_players(incremental: bool = False) → List[Dict[str, str]]

Return unique name and xuid records found in the server log.

Incremental reads resume at the saved cursor; missing logs produce an empty list.

async update_online_players() → List[Dict[str, str]]

Update online-player records from new complete log lines.

Return name/XUID records and retain the cursor. Clear players when the server is stopped.

reset() → None

Reset both log consumers when the process starts or stops.