Closed Dylankjy closed 6 years ago
Hey there,
I haven't tested this, but it should be possible via passing in a directory in the core.spawnOpts.cwd
. I will test this when I get home, and then close the issue if I don't run into problems.
How do I do that? Could you provide a code example? Thanks!
I believe he means
const server = new ScriptServer({
core: {
jar: serverJar,
args: ['-Xmx10G'],
dir: './minecraft/'
spawnOpts: {
cwd: 'directory/path/here'
}
}
});
@ImBaedin yep, thanks.
@EnDylan Just tried this out and it works fine. Let me know if you run into any further issues.
I would like to request a feature that allows the server to be run in a directory. For example:
and it would output all the server files in that directory.