forked from SteamWar/SteamWar
Implement startup arguments into steamwar.devserver.gradle
This commit is contained in:
@@ -38,7 +38,4 @@ tasks.register<DevServer>("DevBau21") {
|
|||||||
dependsOn(":BauSystem:shadowJar")
|
dependsOn(":BauSystem:shadowJar")
|
||||||
dependsOn(":SchematicSystem:shadowJar")
|
dependsOn(":SchematicSystem:shadowJar")
|
||||||
template = "Bau21"
|
template = "Bau21"
|
||||||
// TODO: Add to every new server start! newer than 1.21 inclusive!
|
|
||||||
jvmArgs = "-javaagent:/jars/AccessWidener.jar=start"
|
|
||||||
setdParams(mapOf("paper.disablePluginRemapping" to "true"))
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* This file is a part of the SteamWar software.
|
* This file is a part of the SteamWar software.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2025 SteamWar.de-Serverteam
|
* Copyright (C) 2026 SteamWar.de-Serverteam
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
* it under the terms of the GNU Affero General Public License as published by
|
||||||
@@ -245,8 +245,10 @@ class DevServer extends DefaultTask {
|
|||||||
for (Map.Entry<String, String> dParam : dParams.entrySet()) {
|
for (Map.Entry<String, String> dParam : dParams.entrySet()) {
|
||||||
devPy.append(" -D${dParam.key}=${dParam.value}")
|
devPy.append(" -D${dParam.key}=${dParam.value}")
|
||||||
}
|
}
|
||||||
|
devPy.append(" -Dpaper.disablePluginRemapping=true")
|
||||||
devPy.append(" $template")
|
devPy.append(" $template")
|
||||||
if (debug) devPy.append(" -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:$debugPort")
|
if (debug) devPy.append(" -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:$debugPort")
|
||||||
|
devPy.append(" -javaagent:/jars/AccessWidener.jar=start")
|
||||||
if (jvmArgs != null) devPy.append(" $jvmArgs")
|
if (jvmArgs != null) devPy.append(" $jvmArgs")
|
||||||
println("Starting $template with command ${devPy.toString()}")
|
println("Starting $template with command ${devPy.toString()}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user