indungeon_instance
Player Inside Specific Dungeon — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | indungeon_instance |
| Type | Misc |
| Color | Purple |
| Icon | fa6-solid:dungeon |
Description
Fact returning 1 if the player is currently inside any active dungeon instance. / @Entry("indungeon", "Player Inside Dungeon", Colors.PURPLE, "fa6-solid:dungeon") @Tags("fact", "indungeon") class InDungeonFactEntry( override val id: String = "", override val name: String = "", @Help("Optional comment for documentation") override val comment: String = "", @Help("Group this fact belongs to") override val group: Ref<GroupEntry> = emptyRef(), ) : ReadableFactEntry { override fun readSinglePlayer(player: Player): FactData { return FactData(if (DungeonRegistryAccess.isPlayerInAnyInstance(player.uniqueId)) 1 else 0) } } /** Fact returning 1 if the player is currently inside the specified dungeon instance.
Fields
| Field | Type | Description |
|---|---|---|
comment | String | Optional comment for documentation |
group | Ref<GroupEntry> | Group this fact belongs to |
dungeonInstance | Ref<DungeonInstanceEntry> | Dungeon instance to check |
Usage Example
- entry: indungeon_instance
name: "Player Inside Specific Dungeon"
comment: ""
group: ""
dungeonInstance: ""