[FIX] ServerWrapperSetup .bat create

This commit is contained in:
Gravita 2021-11-17 21:54:51 +07:00
parent 3aedd4a2b8
commit 559f4f4de7

View file

@ -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"));