Updated Requirements (markdown)

Daniel Saukel 2021-08-14 17:53:23 +02:00
parent a8b5ca38ed
commit dd01871841

@ -72,6 +72,25 @@ requirements:
- "15-16" - "15-16"
``` ```
### Time since start & finish
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
```
### Finished dungeons
The dungeons that must be finished before the dungeon may be played.
```
# 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
```
## API ## API
Creating a requirement is as easy as implementing the [Requirement](https://erethon.de/javadocs/dungeonsxl/de/erethon/dungeonsxl/api/Requirement.html) interface in a class with a [DungeonsAPI](https://erethon.de/javadocs/dungeonsxl/de/erethon/dungeonsxl/api/DungeonsAPI.html) parameter. See [here](https://github.com/DRE2N/DungeonsXL/blob/master/core/src/main/java/de/erethon/dungeonsxl/requirement/FeeMoneyRequirement.java) for reference. Creating a requirement is as easy as implementing the [Requirement](https://erethon.de/javadocs/dungeonsxl/de/erethon/dungeonsxl/api/Requirement.html) interface in a class with a [DungeonsAPI](https://erethon.de/javadocs/dungeonsxl/de/erethon/dungeonsxl/api/DungeonsAPI.html) parameter. See [here](https://github.com/DRE2N/DungeonsXL/blob/master/core/src/main/java/de/erethon/dungeonsxl/requirement/FeeMoneyRequirement.java) for reference.