mirror of
https://github.com/GayPizzaSpecifications/concrete.git
synced 2025-08-04 05:31:34 +00:00
Mixed project sample and more bug fixes.
This commit is contained in:
1
samples/mixed/bukkit-plugins/.gitignore
vendored
Normal file
1
samples/mixed/bukkit-plugins/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
server/
|
10
samples/mixed/bukkit-plugins/build.gradle.kts
Normal file
10
samples/mixed/bukkit-plugins/build.gradle.kts
Normal file
@ -0,0 +1,10 @@
|
||||
plugins {
|
||||
id("lgbt.mystic.foundation.concrete-root")
|
||||
}
|
||||
|
||||
concrete {
|
||||
minecraftServerPath.set("server")
|
||||
paperVersionGroup.set("1.19")
|
||||
paperApiVersion.set("1.19-R0.1-SNAPSHOT")
|
||||
acceptServerEula.set(true)
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
plugins {
|
||||
id("lgbt.mystic.foundation.concrete-plugin")
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package lgbt.mystic.foundation.concrete.sample.goodbyeworld
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin
|
||||
|
||||
class GoodbyeWorldPlugin : JavaPlugin() {
|
||||
override fun onEnable() {
|
||||
slF4JLogger.info("Enabled Goodbye World")
|
||||
}
|
||||
|
||||
override fun onDisable() {
|
||||
slF4JLogger.info("Disabled Goodbye World")
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
name: GoodbyeWorld
|
||||
version: '${version}'
|
||||
main: lgbt.mystic.foundation.concrete.sample.goodbyeworld.GoodbyeWorldPlugin
|
||||
api-version: 1.18
|
||||
prefix: GoodbyeWorld
|
||||
load: STARTUP
|
||||
authors:
|
||||
- kubelet
|
||||
- kexec
|
@ -0,0 +1,7 @@
|
||||
plugins {
|
||||
id("lgbt.mystic.foundation.concrete-plugin")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":other-library"))
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package lgbt.mystic.foundation.concrete.sample.helloworld
|
||||
|
||||
import lgbt.mystic.foundation.concrete.other.OtherLibrary
|
||||
import org.bukkit.plugin.java.JavaPlugin
|
||||
|
||||
class HelloWorldPlugin : JavaPlugin() {
|
||||
override fun onEnable() {
|
||||
slF4JLogger.info("Enabled Hello World (Constant is ${OtherLibrary.SOME_CONSTANT})")
|
||||
}
|
||||
|
||||
override fun onDisable() {
|
||||
slF4JLogger.info("Disabled Hello World (Constant is ${OtherLibrary.SOME_CONSTANT})")
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
name: HelloWorld
|
||||
version: '${version}'
|
||||
main: lgbt.mystic.foundation.concrete.sample.helloworld.HelloWorldPlugin
|
||||
api-version: 1.18
|
||||
prefix: HelloWorld
|
||||
load: STARTUP
|
||||
authors:
|
||||
- kubelet
|
||||
- kexec
|
Reference in New Issue
Block a user