BukkitScheduler todo

This commit is contained in:
Vankka 2025-01-04 20:41:57 +02:00
parent 47d1b7bafd
commit 1b91027da0
No known key found for this signature in database
GPG Key ID: 62E48025ED4E7EBB

View File

@ -45,8 +45,7 @@ public class BukkitScheduler extends StandardScheduler implements ServerSchedule
protected void checkDisable(Runnable task, BiConsumer<Server, Plugin> runNormal) {
// Can't run tasks when disabling, so we'll push those to the bootstrap to run after disable
if (!discordSRV.plugin().isEnabled() && discordSRV.status() == DiscordSRV.Status.SHUTTING_DOWN) {
// TODO
//((DiscordSRVBukkitBootstrap) discordSRV.bootstrap()).mainThreadTasksForDisable().add(task);
discordSRV.bootstrap().mainThreadTasksForDisable().add(task);
return;
}