servercraft

0.2.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i servercraft

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

10.2 kB

Total Files

5

Last publish

Collaborators

  • coolstone
  • systemsoftware