You break all spawns instead of testing where the actual problem is?
Try something from the ones bellow.
The problems that occurred were:
- As soon as the server started the boxes were in the first room normally but the Mysteious's Box didn't appear in the first room after turning the time of the instance.
- When it was possible to enter the room and talk to the box the instance started normally, the mobs spawned, were killed and the box with the key appeared, after opening the second room 7/10 times the box did not spawn in the second room and interrupted the instance there.
- The messages from the managers were blank
- The managers didn't show the right elapsed time after the player entered the room.
I reviewed the FourSepulcherManagers.java file and didn't see any inconsistencies, everything was correct. In my insanity I even used older versions of this file, compared it with other codes I have and for some it was exactly the same. It wasn't supposed to have problems. that's why I looked for a solution outside of it. PALLATIVEly "breaking all spawns" solved the problem in FourSepulcher, the instance is working perfectly.
But it is not the solution to the problem itself.
At least it helped you to see the problem and come up with a more polished solution.
But I can't stop thinking: If FourSepulcher had this problem with the spawn other instances like delusion, dimensional among others can't also have this problem?
It's just a point to note.
What fields can this change affect? As there was no other solution until today, I changed this part of the code earlier today and the server is online working normally, no player reported problems with respawn so far but if this change impacts any system I will have to change again.
If it didn't influence the functioning of anything excellent but as Mobius said: my change "break all spawns" then it must have impacted on something.
I would also like to know where the change I made is having an impact, in the future maybe it can serve as a knowledge base.