Refactor to PaperPlugin

This commit is contained in:
Len
2025-11-20 19:33:54 +01:00
parent 33f51eed09
commit aaebd64294
2 changed files with 26 additions and 4 deletions
+14 -4
View File
@@ -2,11 +2,12 @@ import java.io.ByteArrayOutputStream
import java.io.FileOutputStream
import java.net.URL
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
import net.minecrell.pluginyml.paper.PaperPluginDescription
plugins {
id("java")
id("java-library")
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("de.eldoria.plugin-yml.paper") version "0.8.0"
id("xyz.jpenilla.run-paper") version "1.0.6"
id("maven-publish")
}
@@ -99,14 +100,23 @@ fun download(link: String, path: String) {
}
}
bukkit {
paper {
name = rootProject.name
main = "$group.${rootProject.name}"
bootstrapper = "$group.${rootProject.name}Bootstrap"
version = "${rootProject.version}-${gitCommit()}"
apiVersion = "1.21"
authors = listOf("destro174")
depend = listOf("Vault")
softDepend = listOf("GriefPrevention")
serverDependencies {
register("Vault") {
load = PaperPluginDescription.RelativeLoadOrder.BEFORE
}
register("GriefPrevention") {
required = false
}
}
permissions {
register("playershops.admin") {