mirror of
				https://github.com/GayPizzaSpecifications/foundation.git
				synced 2025-11-04 11:39:39 +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() {
 | 
			
		||||
    // Plugin was not initialized, don't do anything.
 | 
			
		||||
    if (!::jda.isInitialized) return
 | 
			
		||||
 | 
			
		||||
    onServerStop()
 | 
			
		||||
 | 
			
		||||
    logger.info("Shutting down JDA")
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user