isShutdownRequested

public static boolean isShutdownRequested(JavaPlugin plugin)

Return

true if requestInitializationShutdown has been called for this plugin. Long-running async work (HTTP, file I/O, content mixing) should poll this between phases and exit early when true so the plugin's onDisable can return without Bukkit nagging about un-shutdown async tasks.