mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-03 05:30:55 +00:00
Test plugin dependencies and casting the existing instance.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
dependencies {
|
||||
implementation("net.dv8tion:JDA:5.0.0-alpha.2")
|
||||
|
||||
compileOnly(project(":foundation-core"))
|
||||
}
|
||||
|
@ -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