Disable Bifrost onDisable if plugin was not initialized.

This commit is contained in:
Logan Gorence committed 2021-12-23 23:08:02 +00:00
1 parent 2c98cacf96
commit da820b8a0d
1 file changed
+3
@@ -56,6 +56,9 @@ class FoundationBifrostPlugin : JavaPlugin(), EventListener, Listener {
}
override fun onDisable() {
// Plugin was not initialized, don't do anything.
if (!::jda.isInitialized) return
onServerStop()
logger.info("Shutting down JDA")