Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details →
Socket
Book a DemoInstallSign in
Socket

servercraft

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

servercraft

Make your own Minecraft server

latest
npmnpm
Version
0.2.1
Version published
Maintainers
2
Created
Source

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

minecraft

FAQs

Package last updated on 22 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts