Multiple Bugs & Feature Request for MythicDungeons (Paper 1.21.11)
Subject: Multiple Bugs & Feature Request for MythicDungeons (Paper 1.21.11)
Server Version: Paper 1.21.11
Plugin Version: MythicDungeons v2.0.1-SNAPSHOT (Build 304)
I’ve encountered several critical issues while running MythicDungeons on Paper 1.21.11. Below are the details:
1. Asynchronous Task Exception (IllegalStateException)
The plugin is attempting to trigger a synchronous event from an asynchronous thread, causing the following stack trace. This usually happens when DungeonDisposeEvent is called within an async task.
Error Log:
[00:51:49 WARN]: [MythicDungeons] Plugin MythicDungeons v2.0.1-SNAPSHOT generated an exception while executing task 940 java.lang.IllegalStateException: DungeonDisposeEvent may only be triggered synchronously. at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:42) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) at net.playavalon.mythicdungeons.api.parents.instances.AbstractInstance.dispose(AbstractInstance.java:356) at net.playavalon.mythicdungeons.MythicDungeons$1.run(MythicDungeons.java:294) at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
2. Player Instance Clipping
There is a bug where players are occasionally teleported into other players' private dungeon instances instead of their own.
3. Premature Instance Disposal
There is a critical race condition during the dungeon join process. If the initialization or teleportation logic takes too long, the instance occasionally marks itself as "empty" and triggers the disposal/cleanup process before the player has successfully joined the world.