mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-03 13:31:32 +00:00
Disable Bifrost onDisable if plugin was not initialized.
This commit is contained in:
@ -56,6 +56,9 @@ class FoundationBifrostPlugin : JavaPlugin(), EventListener, Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onDisable() {
|
override fun onDisable() {
|
||||||
|
// Plugin was not initialized, don't do anything.
|
||||||
|
if (!::jda.isInitialized) return
|
||||||
|
|
||||||
onServerStop()
|
onServerStop()
|
||||||
|
|
||||||
logger.info("Shutting down JDA")
|
logger.info("Shutting down JDA")
|
||||||
|
Reference in New Issue
Block a user