0.2.1 • Published 3 years ago
servercraft v0.2.1
Servercraft
Make your own Minecraft server
Installation
Download Java, if you haven't already. Then run
sudo npm i servercraft -g in your command-line.
If you want to use it programmatically, install it with npm i servercraft in your command-line.
CLI
Get a full list of commands:
servercraftSet up your server
servercraft setup <version>Omit version to download the latest version
Setup & start your server
servercraft startGet your IP
ipAPI
Initialize
const servercraft = require('servercraft')
const server = new servercraft()Setup
server.setup(startAfter, args, config, version)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
server.start(args, config)Stop
server.stop()Get IP
server.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 here