Dungeon Close
Dungeon Close
Action/command to close an active dungeon instance and teleport players out.
Felder
| Feld | Typ | Standard | Beschreibung | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dungeonInstance | Ref<DungeonInstanceEntry> | — | Target dungeon instance | ||||||||||||||||||||||||||||
exitPoint | WorldLocation | — | Teleport location after closing
|
| Feld | Typ | Standard | Beschreibung |
|---|---|---|---|
world | String | — | — |
x | Int | 0 | — |
y | Int | 0 | — |
z | Int | 0 | — |
yaw | Float | 0 | — |
pitch | Float | 0 | — |
closeMessageVar<String>Closing dungeonGemeinsame TypeWriter-Felder (criteria, modifiers, triggers)
| Feld | Typ | Standard | Beschreibung |
|---|---|---|---|
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.