Node.js
Servercraft can also be used programmatically through Node.js. To get started, install the package.
Initialize
Setup
If startAfter
is false, you can omit or pass null
for the args
and config
parameters. If startAfter
is true, you can omit the config
parameter.
Start
Stop
Get IP
Args are command-line arguments, and config is a JSON object. You can find a list of all the arguments here. You can find a list of all the config options below.
Download
Servercraft also allows you to only download a JAR file to a directory.
Config
Start
config
is optional
Setup
Delete your server
Get path to the directory
Last updated