Skip to content

Commit

Permalink
Update serverManager.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueBurger authored Oct 11, 2023
1 parent db4ed40 commit db4dcea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server/src/serverManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ enforce-secure-profile=false
let args = ["-Dnojline=true", "-Xms" + server.mem + "M", "-Xmx" + server.mem + "M", "-jar", "server.jar", "--nogui"];
if(server.useCustomJVMArgs && server.jvmArgs) {
let jvmArgs = server.jvmArgs.split(" ");
args = ["-Dnojline=true", "-Xms" + server.mem + "M", "-Xmx" + server.mem + "M", ...jvmArgs, "-jar", "server.jar", "--nogui"];
args = ["-Dnojline=true", "-Xms" + server.mem + "M", "-Xmx" + server.mem + "M", ...jvmArgs];
}
let childProcess = spawn("java", args, {
cwd: server.path,
Expand Down Expand Up @@ -275,4 +275,4 @@ enforce-secure-profile=false
}
export function userHasAccessToServer(user: User | undefined, server: Server) {
return _userHasAccessToServer(user, server);
}
}

0 comments on commit db4dcea

Please sign in to comment.