Add a concept of a concrete-library which has access to Bukkit but is not a plugin.

This commit is contained in:
Alex Endfinger committed 2022-07-10 19:35:50 -04:00
1 parent 39a7b50a07
commit 58356c27f3
13 files changed
+68 -32

No files matched your search

@@ -4,4 +4,5 @@ plugins {
dependencies {
implementation(project(":other-library"))
implementation(project(":bukkit-plugins:common-library"))
}
@@ -1,14 +1,16 @@
package lgbt.mystic.foundation.concrete.sample.helloworld
import lgbt.mystic.foundation.concrete.other.OtherLibrary
import lgbt.mystic.foundation.conrete.sample.common.logOnDisable
import lgbt.mystic.foundation.conrete.sample.common.logOnEnable
import org.bukkit.plugin.java.JavaPlugin
class HelloWorldPlugin : JavaPlugin() {
override fun onEnable() {
slF4JLogger.info("Enabled Hello World (Constant is ${OtherLibrary.SOME_CONSTANT})")
logOnEnable(OtherLibrary.HELLO_WORLD)
}
override fun onDisable() {
slF4JLogger.info("Disabled Hello World (Constant is ${OtherLibrary.SOME_CONSTANT})")
logOnDisable(OtherLibrary.HELLO_WORLD)
}
}