DRE2N / DungeonsXL

Create custom dungeons and adventure maps with ease!
https://www.spigotmc.org/resources/dungeonsxl.9488/
GNU General Public License v3.0
152 stars 84 forks source link

Time to finish does not kick players out of Dungeon #1057

Closed MARODEUR closed 2 years ago

MARODEUR commented 2 years ago

Description

I set up a Dungeon with the Rule:

timeToFinish: 1200

But sometimes (not always) players are not kicked out of the Dungeon when the countdown reaches 0. The Countdown then starts to count in negative Value (3..2..1..0... -1...-2...-3..). RewardChests after completing the Dungeon are not working (Reward Inventory not working after dungeon leave). No errors in console.

Reproduce

  1. Create a new dungeon with /dxl create
  2. Configure timetoFinish
  3. Test with /dxl play
  4. Just wait until the time runs off. It counts into negative and is not kicking players. (Does not appear always)

Expected behavior

(A clear and concise description of what you expected to happen, e.g.: I wanted the pigs to turn blue and dig mole-like tunnels instead X( )

Relevant configuration files

Used Dungeon Config: https://pastebin.com/AFM4iSkd

Sataniel98 commented 2 years ago

Is the game goal set to gameGoal: TIME_SURVIVAL or gameGoal: TIME_SCORE?

MARODEUR commented 2 years ago

No, i oversee that setting and set it. Error has not appeared since then. So you always have to set both of the settings for a dungeon for working properly?

Sataniel98 commented 2 years ago

Yes. The default game goal is END which ends the dungeon when the end sign is reached.