brysonsteck / resurrection

Forces Minecraft players to wait absurd amounts of time before respawning.
https://www.spigotmc.org/resources/resurrection.94542/
GNU Affero General Public License v3.0
4 stars 2 forks source link

Fails to resurrect most players after stopping and restarting the server #4

Closed brysonsteck closed 2 years ago

brysonsteck commented 2 years ago

Describe the bug After stopping and restarting the Minecraft server with Resurrection enabled, players who have died before the server was stopped and have passed their resurrection time would join the server to find that they are still dead. Running /howlong shows negative time values. This issue does not seem to affect players who joined the server before their resurrection time, due to the BukkitRunnables being scheduled correctly.

To Reproduce

  1. Die to trigger Resurrection (in the Minecraft server, not real life)
  2. Stop the server
  3. Start the server
  4. Wait until the time for resurrection passes
  5. Join the server
  6. See the issue

Expected behavior Players should still resurrect after a server reboot and after their resurrection time has passed.

Server Info (please complete the following information if you are the server admin): Linux portal 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Other Plugins Running None

brysonsteck commented 2 years ago

This issue should be patched within the next month. I will probably create a class that will help verify everything related to scheduling the BukkitRunnables and making sure that people can still play automatically if a server reboot is necessary. This class should also help remove repeated code in the PlayerListener class. If any developments on this issue are made, they will be posted here. You are also free to comment on this issue if you are experiencing this problem.

brysonsteck commented 2 years ago

Fixed in Version 1.2.