mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-02-02 23:32:37 +01:00
BukkitScheduler todo
This commit is contained in:
parent
47d1b7bafd
commit
1b91027da0
@ -45,8 +45,7 @@ public class BukkitScheduler extends StandardScheduler implements ServerSchedule
|
|||||||
protected void checkDisable(Runnable task, BiConsumer<Server, Plugin> runNormal) {
|
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
|
// 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) {
|
if (!discordSRV.plugin().isEnabled() && discordSRV.status() == DiscordSRV.Status.SHUTTING_DOWN) {
|
||||||
// TODO
|
discordSRV.bootstrap().mainThreadTasksForDisable().add(task);
|
||||||
//((DiscordSRVBukkitBootstrap) discordSRV.bootstrap()).mainThreadTasksForDisable().add(task);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user