Skip to content

Commit 462b581

Browse files
committed
fix: Fix runServer task when use spigot core
Fixes #55
1 parent 0080b96 commit 462b581

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/server/DevServerPlugin.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public class DevServerPlugin : Plugin<Project> {
107107
description = "Copy server core to server directory"
108108

109109
val source = if (serverConfiguration.coreType == CoreType.SPIGOT) {
110-
buildServerCore.map { it.buildToolsFile.get() }
110+
buildServerCore.map { it.spigotFile.get() }
111111
} else {
112112
downloadPaperclip.map { it.paperclipFile.get() }
113113
}

src/main/kotlin/server/task/BuildServerCore.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public abstract class BuildServerCore : JavaExec() {
1919
@get:Input
2020
public abstract val version: Property<String>
2121

22-
@OutputFile
22+
@get:OutputFile
2323
public val spigotFile: Provider<File> = buildToolsFile.zip(version) { buildToolsFile, version ->
2424
File(buildToolsFile.parentFile, "spigot-$version.jar")
2525
}

0 commit comments

Comments
 (0)