3
0
Mirror von https://github.com/Moulberry/AxiomPaperPlugin.git synchronisiert 2024-11-17 05:40:06 +01:00

fix task for running mojang mapped server

Dieser Commit ist enthalten in:
Jason Penilla 2021-07-10 16:09:39 -07:00
Ursprung 0dbf8c744f
Commit e45c5c2be6
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0E75A301420E48F8

Datei anzeigen

@ -15,8 +15,6 @@ repositories {
mavenLocal() { mavenLocal() {
content { includeGroup("io.papermc.paper") } content { includeGroup("io.papermc.paper") }
} }
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
} }
dependencies { dependencies {
@ -47,14 +45,14 @@ tasks {
// Task to run obfuscated/production server and plugin // Task to run obfuscated/production server and plugin
runServer { runServer {
minecraftVersion("1.17.1") minecraftVersion("1.17.1")
pluginJars.from(reobfJar.flatMap { it.outputJar }) pluginJars(reobfJar.flatMap { it.outputJar })
} }
// Task to run mojang mapped/dev server and plugin // Task to run mojang mapped/dev server and plugin
register<RunServerTask>("runMojangMappedServer") { register<RunServerTask>("runMojangMappedServer") {
minecraftVersion("1.17.1") minecraftVersion("1.17.1")
pluginJars.from(jar.flatMap { it.archiveFile }) pluginJars(jar.flatMap { it.archiveFile })
paperclip(layout.file(configurations.mojangMappedServer.map { it.singleFile })) paperclip(paperweight.mojangMappedPaperServerJar)
} }
} }