allowlist

Bedrock allowlist component.

class bedrock_server_manager.core.server.allowlist.ServerAllowlist(server: BedrockServer)

Allowlist operations for one Bedrock server.

async get_allowlist() → List[Dict[str, Any]]

Reads the allowlist.json file asynchronously and returns its contents.

async add_to_allowlist(players_to_add: List[Dict[str, Any]]) → int

Adds players to the allowlist asynchronously.

async remove_from_allowlist(player_name_to_remove: str) → bool

Remove a player from the allowlist asynchronously.