Ghost Toggle Visibility
Toggle Ghost Visibility
Toggles ghost visibility for the triggering player. When executed, flips the player's ghost visibility state and sends a feedback message using MiniMessage formatting. Can be triggered by any Typewriter trigger (event, action chain, etc.) or called from other extensions via the TriggerableEntry system.
Поля
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
showMessage | String | — | Message shown when ghosts become visible. Supports MiniMessage format. Leave empty for default. |
hideMessage | String | — | Message shown when ghosts become hidden. Supports MiniMessage format. Leave empty for default. |
Общие поля TypeWriter (criteria, modifiers, triggers)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
The action flips the ghost visibility of the player who triggers it, saves the new value in the Ghost Visibility Fact fact and sends a message. showMessage is sent when ghosts become visible and hideMessage when they become hidden, both in MiniMessage. Leave them empty for the built-in messages.
It works as a toggle only: to force a value, add a criteria on the Ghost Visibility fact so the action runs only when the state differs. The action does not check the typewriter.ghost.use permission, unlike /ghost toggle.