Set Language Action
Set a player's translation language
Action to set a player's language. The language must be configured in TranslationConfigEntry. This will save the preference and execute any on-change actions defined for the language.
Campos
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
language | Var<String> | — | The language name to set (e.g., 'en_GB', 'fr_FR'). Must match a language configured in TranslationConfig. Supports placeholders. |
Campos comuns do TypeWriter (triggers, criteria, modifiers)
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
triggers | List<Ref<TriggerableEntry>> | empty | — |
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
How to use it
language takes a configured language name (placeholders are supported). The player's language is saved and the onChangeActions of that language run. If the player already has this language nothing happens. Only this action fires the Player Language Change event; changing language with /translate or from the menu does not.