-
Notifications
You must be signed in to change notification settings - Fork 83
Requirements
This is a list of all built-in requirements of DungeonsXL.
Makes the player pay experience levels.
requirements:
feeLevel: 1
Makes the player pay Vault money.
requirements:
feeMoney: 50.0
Items that may not be taken into the dungeon.
requirements:
forbiddenItems:
- ENDER_PEARL
- MY_CUSTOM_ITEM
Adding ENDER_PEARL to this list also forbids all custom items that are based on ENDER_PEARL (= whose material is an ender pearl). If you do not wish to forbid items other items based on ender pearls but only Vanilla ender pearls, add an "*" to the ID:
requirements:
forbiddenItems:
- ENDER_PEARL*
- MY_CUSTOM_ITEM
Sets the allowed amount of group members.
requirements:
groupSize:
minimum: 2
maximum: 4
Items the player must have to play the dungeon.
requirements:
keyItems:
- GOLD_INGOT
- MY_CUSTOM_ITEM
Permissions the player must have to play the dungeon.
requirements:
permission:
- my.custom.node
- yet.another.node
The time when the dungeon may be played. In this example, it can only be played on a friday and from sunday to tuesday respectively at 15-16 o'clock. Note that the week in the Java Calendar API begins with sunday, so SATURDAY-SUNDAY does not work.
requirements:
timeframe:
- "FRIDAY"
- "SUNDAY-TUESDAY"
- "15-16"
Cooldown since the dungeon has been played for the last time. timeSinceStart counts since the dungeon has been started (tried), timeSinceFinish allows for infinite tries but prevents entering the dungeon if the player has already succeeded within the timeframe.
requirements:
timeSinceStart: 0.05 # 3 minutes
timeSinceFinish: 24.0
The dungeons that must be finished before the dungeon may be played.
requirements:
# Players must have finished all of the following dungeons at least once:
finishedDungeons:
- Test1 # Test1
- Test2/Test3 # AND EITHER Test2 and Test3
- 7:Test4 # and Test4 within the last 7 hours
- 0.05:Test5 # and Test5 within the last 3 minutes
Creating a requirement is as easy as implementing the Requirement interface in a class with a DungeonsAPI parameter. See here for reference.
Requirements fire RequirementCheckEvent and RequirementDemandEvent.
Wiki: © 2015-2021 Daniel Saukel and contributors, licensed under CC BY-SA (only unless otherwise stated)
- General information
- General setup and usage
- Dungeon setup
- Signs
- Game rules
- Linked dungeon configuration
- Dungeon world configuration
- Details
- Examples (WIP)
- Simple dungeon
- Bedwars TODO
- PVP arena TODO
- Mob arena TODO
- Tutorial TODO
- Data structure guide
- FAQ