mirror of
				https://github.com/GayPizzaSpecifications/foundation.git
				synced 2025-11-04 11:39:39 +00:00 
			
		
		
		
	Test plugin dependencies and casting the existing instance.
This commit is contained in:
		@ -1,9 +1,13 @@
 | 
			
		||||
package cloud.kubelet.foundation.bifrost
 | 
			
		||||
 | 
			
		||||
import cloud.kubelet.foundation.core.FoundationCorePlugin
 | 
			
		||||
import org.bukkit.plugin.java.JavaPlugin
 | 
			
		||||
 | 
			
		||||
class FoundationBifrostPlugin : JavaPlugin() {
 | 
			
		||||
  override fun onEnable() {
 | 
			
		||||
    slF4JLogger.info("Enabling!")
 | 
			
		||||
 | 
			
		||||
    val foundation = server.pluginManager.getPlugin("Foundation") as FoundationCorePlugin
 | 
			
		||||
    slF4JLogger.info("Plugin data path: ${foundation.pluginDataPath}")
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user