Skip to content

Commit

Permalink
fix: Fixed Expansion name in Velocity platform and migrate to paper p…
Browse files Browse the repository at this point in the history
…lugin
  • Loading branch information
4drian3d committed Apr 19, 2023
1 parent 854a020 commit 0bb3a71
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
12 changes: 6 additions & 6 deletions paper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
11 changes: 11 additions & 0 deletions paper/src/main/resources/paper-plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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();
}
}

0 comments on commit 0bb3a71

Please # to comment.