forked from SteamWar/SteamWar
@@ -239,18 +239,18 @@ class DevServer extends DefaultTask {
|
||||
}
|
||||
|
||||
void startDevServer() {
|
||||
def devPy = new StringBuilder().append("dev.py")
|
||||
def devPy = new StringBuilder().append("sw dev")
|
||||
if (port != null) devPy.append(" --port $port")
|
||||
if (worldName != null) devPy.append(" -w $template/$worldName")
|
||||
if (plugins != null) devPy.append(" -p $plugins")
|
||||
if (profile != null) devPy.append(" --profile")
|
||||
if (forceUpgrade != null) devPy.append(" --forceUpgrade")
|
||||
if (jar != null) devPy.append(" --jar $jar")
|
||||
devPy.append(" $template")
|
||||
for (Map.Entry<String, String> dParam : dParams.entrySet()) {
|
||||
devPy.append(" -D${dParam.key}=${dParam.value}")
|
||||
}
|
||||
devPy.append(" -Dpaper.disablePluginRemapping=true")
|
||||
devPy.append(" $template")
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user