Fixed pregenerator shutdown lock

- Scheduler admission reads the hosted plugin state without taking the plugin manager monitor
- Shutdown regression joins a worker already dispatching a saving event
- Event tests preserve normal delivery and full failure reporting during scheduler rejection
This commit is contained in:
Brian Neumann-Fopiano committed 2026-09-06 17:37:48 -04:00
1 parent 2415825bb7
commit be621c0074
2 files changed
+224 -1

No files matched your search

@@ -772,7 +772,7 @@ public class J {
}
private static boolean isPluginEnabled() {
return usesBukkitScheduler() && BukkitPlatform.hasPlugin() && Bukkit.getPluginManager().isPluginEnabled(BukkitPlatform.plugin());
return usesBukkitScheduler() && BukkitPlatform.hasPlugin() && BukkitPlatform.plugin().isEnabled();
}
private static boolean canSchedule() {