Disable Bifrost onDisable if plugin was not initialized.

This commit is contained in:
Logan Gorence 2021-12-23 23:08:02 +00:00
parent 2c98cacf96
commit da820b8a0d
No known key found for this signature in database
GPG Key ID: 9743CEF10935949A

View File

@ -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")