Switch Profile Action
Switches the player to a specific profile
Action to switch to a specific profile by ID.
Поля
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
profileId | String | — | The profile ID to switch to. Supports placeholders.Плейсхолдеры |
successMessage | String | — | Message to send on success. Leave empty for no message.Плейсхолдеры |
failureMessage | String | <red>Impossible de changer de profil. | Message to send on failure. Leave empty for no message.Плейсхолдеры |
Общие поля TypeWriter (triggers, criteria, modifiers)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
triggers | List<Ref<TriggerableEntry>> | empty | — |
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
How to use it
profileId is the profile id (not its name) and accepts placeholders. The switch is asynchronous: successMessage ({profile_name}) and the Profile Switched Event fire only once the switch has really completed. failureMessage is sent when the profile does not exist, the cooldown is running, or another extension cancelled the switch. A profile that is already active counts as a success.