From 559f4f4de72591b0b8538f960a8858dc267ded68 Mon Sep 17 00:00:00 2001 From: Gravita Date: Wed, 17 Nov 2021 21:54:51 +0700 Subject: [PATCH] [FIX] ServerWrapperSetup .bat create --- .../pro/gravit/launcher/server/setup/ServerWrapperSetup.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java index b173e439..916d5f2d 100644 --- a/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java +++ b/ServerWrapper/src/main/java/pro/gravit/launcher/server/setup/ServerWrapperSetup.java @@ -99,8 +99,9 @@ public void run() throws Exception { if (JVMHelper.OS_TYPE == JVMHelper.OS.LINUX) { writer.append("#!/bin/bash\n\n"); } + writer.append("\""); writer.append(IOHelper.resolveJavaBin(Paths.get(System.getProperty("java.home"))).toAbsolutePath().toString()); - writer.append(" "); + writer.append("\" "); if (mainClassName.contains("bungee")) { LogHelper.info("Found BungeeCord mainclass. Modules dir change to modules_srv"); writer.append(JVMHelper.jvmProperty("serverwrapper.modulesDir", "modules_srv"));