mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-02 13:10:55 +00:00
Disable Bifrost onDisable if plugin was not initialized.
This commit is contained in:
parent
2c98cacf96
commit
da820b8a0d
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user