@Override
    public void shutdownScheduler() {
        this.scheduler.shutdown();
        try {
            if (!this.scheduler.awaitTermination(1, TimeUnit.MINUTES)) {
                this.bootstrap.getPluginLogger().severe("Timed out waiting for the LuckPerms scheduler to terminate");
                reportRunningTasks(thread -> thread.getName().equals("luckperms-scheduler"));
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
Abstract implementation of {@link SchedulerAdapter} using a {@link ScheduledExecutorService}.
common/src/main/java/me/lucko/luckperms/common/plugin/scheduler/AbstractJavaScheduler.java