Add Dev Command
All checks were successful
SteamWarCI Build successful

This commit is contained in:
2025-10-26 01:30:11 +02:00
parent 57148c3693
commit 7676ce7001

View File

@ -79,7 +79,7 @@ class DevCommand : CliktCommand("dev") {
} else { } else {
setLogConfig(args) setLogConfig(args)
val version = findVersion(server) ?: throw CliktError("Unknown Server Version") val version = findVersion(server) ?: throw CliktError("Unknown Server Version")
val worldFile = world?.let { it.absolute().toFile() } ?: File(serverDir, "devtempworld") val worldFile = world?.absolute()?.toFile() ?: File(serverDir, "devtempworld")
val jarFile = jar?.absolutePath ?: JARS[server]?.let { VERSIONS[it] } ?: VERSIONS[version] val jarFile = jar?.absolutePath ?: JARS[server]?.let { VERSIONS[it] } ?: VERSIONS[version]
?: throw CliktError("Unknown Server Version") ?: throw CliktError("Unknown Server Version")