npm.io
0.2.1 • Published 3 years agoCLI

servercraft

Licence
MIT
Version
0.2.1
Deps
3
Size
10 kB
Vulns
0
Weekly
0

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:

servercraft

Set up your server

servercraft setup <version>

Omit version to download the latest version

Setup & start your server

servercraft start

Get your IP

ip

API

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

Other info

Want this as an app? Download for macOS & Windows
Get more in-depth help on Discord or read our docs
Report feedback & bugs here
Like our work? Support us on Patreon

Keywords