@Override
    public void onEnable() {
        this.startTime = Instant.now();
        try {
            this.plugin.enable();
        } finally {
            this.enableLatch.countDown();
        }
    }
Bootstrap plugin for LuckPerms running as a standalone app.
standalone/src/main/java/me/lucko/luckperms/standalone/LPStandaloneBootstrap.java