Dungeon Close
Dungeon Close
Action/command to close an active dungeon instance and teleport players out.
Поля
| Поле | Тип | По умолчанию | Описание | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dungeonInstance | Ref<DungeonInstanceEntry> | — | Target dungeon instance | ||||||||||||||||||||||||||||
exitPoint | WorldLocation | — | Teleport location after closing
|
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
world | String | — | — |
x | Int | 0 | — |
y | Int | 0 | — |
z | Int | 0 | — |
yaw | Float | 0 | — |
pitch | Float | 0 | — |
closeMessageVar<String>Closing dungeonОбщие поля TypeWriter (criteria, modifiers, triggers)
| Поле | Тип | По умолчанию | Описание |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Ends the run of dungeonInstance that the triggering player is in, as an admin close. Players are teleported to exitPoint when its world is set, and to where they came from otherwise. onEnd fires for each member, the chests, NPCs and mobs of the run are removed, and the world is released. If the run is already ending, nothing happens twice.
To end a run because the dungeon was finished, use Dungeon Complete instead: it also records the completion and the best time and raises the completion event.