This commit is contained in:
2025-04-28 23:35:26 +08:00
parent ca938a603e
commit d2f6941665
3 changed files with 3 additions and 3 deletions

View File

@@ -1,2 +1,2 @@
kotlin.code.style=official
pluginVersion=0.0.1
pluginVersion=0.1.1

View File

@@ -41,7 +41,7 @@ abstract class RunBrokerSubServerTask : DefaultTask() {
project.exec {
it.executable = if (executablePath == "-") "java" else executablePath
it.workingDir = project.layout.projectDirectory.dir("run/server/$currentTaskName").asFile
it.args = listOf("-jar", serverCore.absolutePath)
it.args = listOf("-jar", serverCore.absolutePath, "nogui")
}
println("Server $currentTaskName started...")
}

View File

@@ -17,7 +17,7 @@ import java.net.URI
private const val BUNGEECORD_DOWNLOAD_URL =
"https://ci.md-5.net/job/BungeeCord/lastSuccessfulBuild/artifact/bootstrap/target/BungeeCord.jar"
class RunBrokerBungeeCordTask : DefaultTask() {
abstract class RunBrokerBungeeCordTask : DefaultTask() {
@TaskAction
fun runSubserver() {