Permissions API Documentation
- bedrock_server_manager.api.permissions.set_permissions(server_name: str, xuid: str, player_name: str | None, permission: str, app_context: AppContext) Dict[str, str]
Sets a player’s permission level for a given server.
- Parameters:
server_name (str) – The name of the server.
xuid (str) – The XUID of the player.
player_name (Optional[str]) – The name of the player.
permission (str) – The permission level to grant.
app_context (AppContext) – The application context.
- Returns:
A dictionary with the status and result message.
- Return type:
Dict[str, str]
- bedrock_server_manager.api.permissions.get_permissions(server_name: str, app_context: AppContext) Dict[str, Any]
Retrieves the permissions configuration for a server, formatted with player names.
- Parameters:
server_name (str) – The name of the server.
app_context (AppContext) – The application context.
- Returns:
A dictionary containing a list of permission objects.
- Return type:
Dict[str, Any]