mirror of
https://github.com/GayPizzaSpecifications/concrete.git
synced 2025-08-04 13:41:33 +00:00
Add a concept of a concrete-library which has access to Bukkit but is not a plugin.
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user