> ## Documentation Index
> Fetch the complete documentation index at: https://docs.borntocraftstudio.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Profile Events

> Lifecycle triggers.

Events triggered by profile operations.

## Context Keys

These variables are available in the event context:

* `PROFILE_ID`: ID of the relevant profile.
* `PROFILE_NAME`: Name of the relevant profile.

## Events

### Profile Switched

**Type:** `profile_switched_event`

Triggered after a successful profile switch.

* `OLD_PROFILE_ID`: ID of the previous profile.
* `OLD_PROFILE_NAME`: Name of the previous profile.

### Profile Created

**Type:** `profile_created_event`

Triggered after a new profile is initialized.

### Profile Deleted

**Type:** `profile_deleted_event`

Triggered after a profile is permanently removed.

### Profile Loaded

**Type:** `profile_loaded_event`

Triggered when player data is loaded on join.

### Profile Saved

**Type:** `profile_saved_event`

Triggered when player data is saved (quit, auto-save, or switch).
