Refactor to PaperPlugin
This commit is contained in:
parent
33f51eed09
commit
aaebd64294
|
|
@ -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") {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
package com.alttd.playershops;
|
||||
|
||||
import io.papermc.paper.plugin.bootstrap.BootstrapContext;
|
||||
import io.papermc.paper.plugin.bootstrap.PluginBootstrap;
|
||||
|
||||
@SuppressWarnings("UnstableApiUsage")
|
||||
public class PlayerShopsBootstrap implements PluginBootstrap {
|
||||
|
||||
@Override
|
||||
public void bootstrap(BootstrapContext context) {}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user