Skip to content
Commits on Source (3)
## [3.0.0-beta.8](https://git.griefed.de/Griefed/ServerPackCreator/compare/3.0.0-beta.7...3.0.0-beta.8) (2022-03-01)
### 🛠 Fixes
* **Start Scripts:** Correctly call Java version print in bash scripts. Thanks to [@kreezxil](https://git.griefed.de/kreezxil) for reporting this issue! Closes [#274](https://git.griefed.de/Griefed/ServerPackCreator/issues/274). ([defb89b](https://git.griefed.de/Griefed/ServerPackCreator/commit/defb89b48cd6d217f78e3149eca68f859c53483c))
## [3.0.0-beta.7](https://git.griefed.de/Griefed/ServerPackCreator/compare/3.0.0-beta.6...3.0.0-beta.7) (2022-02-27)
......
......@@ -561,7 +561,8 @@ public class ServerPackHandler {
writer.write("echo \"Minecraft version: $MINECRAFT\";\n");
writer.write("echo \"Fabric version: $FABRIC\";\n");
writer.write("echo \"Java version:\"\n");
writer.write("$JAVA --version\n");
// Bash, Linux, we must use -version
writer.write("$JAVA -version\n");
writer.write("echo \"Java args: $ARGS\";\n");
writer.write("\n");
writer.write("$JAVA $OTHERARGS $ARGS -jar fabric-server-launch.jar nogui");
......@@ -658,6 +659,7 @@ public class ServerPackHandler {
writer.write("ECHO Minecraft version: %MINECRAFT%\n");
writer.write("ECHO Fabric version: %FABRIC%\n");
writer.write("ECHO Java version:\n");
// Batch, Windows, we can use --version
writer.write("%JAVA% --version\n");
writer.write("ECHO Java args: %ARGS%\n");
writer.write("\n");
......@@ -800,7 +802,8 @@ public class ServerPackHandler {
writer.write("echo \"Minecraft version: $MINECRAFT\";\n");
writer.write("echo \"Forge version: $FORGE\";\n");
writer.write("echo \"Java version:\"\n");
writer.write("$JAVA --version\n");
// Bash, Linux, we must use -version
writer.write("$JAVA -version\n");
writer.write("echo \"Java args in user_jvm_args.txt: $ARGS\";\n");
writer.write("\n");
writer.write("# Forge requires a configured set of both JVM and program arguments.\n");
......@@ -915,6 +918,7 @@ public class ServerPackHandler {
writer.write("ECHO Minecraft version: %MINECRAFT%\n");
writer.write("ECHO Forge version: %FORGE%\n");
writer.write("ECHO Java version:\n");
// Batch, Windows, we can use --version
writer.write("%JAVA% --version\n");
writer.write("ECHO Java args in user_jvm_args.txt: %ARGS%\n");
writer.write("\n");
......@@ -1022,7 +1026,8 @@ public class ServerPackHandler {
writer.write("echo \"Minecraft version: $MINECRAFT\";\n");
writer.write("echo \"Forge version: $FORGE\";\n");
writer.write("echo \"Java version:\"\n");
writer.write("$JAVA --version\n");
// Bash, Linux, we must use -version
writer.write("$JAVA -version\n");
writer.write("echo \"Java args: $ARGS\";\n");
writer.write("\n");
writer.write("$JAVA $OTHERARGS $ARGS -jar forge.jar nogui");
......@@ -1124,6 +1129,7 @@ public class ServerPackHandler {
writer.write("ECHO Minecraft version: %MINECRAFT%\n");
writer.write("ECHO Forge version: %FORGE%\n");
writer.write("ECHO Java version:\n");
// Batch, Windows, we can use --version
writer.write("%JAVA% --version\n");
writer.write("ECHO Java args: %ARGS%\n");
writer.write("\n");
......