diff --git a/paper/build.gradle.kts b/paper/build.gradle.kts index 3fe1e6b..5c2a491 100644 --- a/paper/build.gradle.kts +++ b/paper/build.gradle.kts @@ -8,10 +8,10 @@ dependencies { implementation(project(":spark-expansion-common")) } -bukkit { - main = "io.github.miniplaceholders.expansion.spark.paper.PaperPlugin" - apiVersion = "1.19" - authors = listOf("4drian3d") - depend = listOf("MiniPlaceholders", "spark") - version = project.version as String +tasks { + processResources { + filesMatching("paper-plugin.yml") { + expand("version" to project.version) + } + } } diff --git a/paper/src/main/resources/paper-plugin.yml b/paper/src/main/resources/paper-plugin.yml new file mode 100644 index 0000000..17eb3be --- /dev/null +++ b/paper/src/main/resources/paper-plugin.yml @@ -0,0 +1,11 @@ +name: Spark-Expansion +version: '${version}' +author: 4drian3d +main: io.github.miniplaceholders.expansion.spark.paper.PaperPlugin +api-version: '1.19' +folia-supported: true +dependencies: + - name: MiniPlaceholders + required: true + - name: spark + required: true \ No newline at end of file diff --git a/velocity/src/main/java/io/github/miniplaceholders/expansion/spark/velocity/VelocityPlugin.java b/velocity/src/main/java/io/github/miniplaceholders/expansion/spark/velocity/VelocityPlugin.java index 4490f68..ed932e0 100644 --- a/velocity/src/main/java/io/github/miniplaceholders/expansion/spark/velocity/VelocityPlugin.java +++ b/velocity/src/main/java/io/github/miniplaceholders/expansion/spark/velocity/VelocityPlugin.java @@ -9,8 +9,8 @@ import org.slf4j.Logger; @Plugin( - name = "Example-Expansion", - id = "example-expansion", + name = "Spark-Expansion", + id = "spark-expansion", version = Constants.VERSION, authors = {"4drian3d"}, dependencies = { @@ -28,7 +28,7 @@ public VelocityPlugin(Logger logger) { @Subscribe public void onProxyInitialize(ProxyInitializeEvent event) { - logger.info("Starting Example Expansion for Velocity"); + logger.info("Starting Spark Expansion for Velocity"); CommonExpansion.register(); } }