0.2.1 • Published 1 year ago

servercraft v0.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago