garrettjoecox / scriptserver

A Minecraft server wrapper, allows for simple plugins in vanilla
GNU General Public License v3.0
68 stars 10 forks source link
minecraft nodejs

scriptserver

Total Downloads

What's ScriptServer?

A configurable Minecraft server wrapper written in Node.js. Using a combination of RCON and the output of the server console it allows you to do some pretty cool things, like making simple server-side plugins on a vanilla Minecraft server JAR.

What version of Minecraft does it work with?

Technically, it can work with any version of Minecraft that logs to STDOUT and has an RCON port exposed (Which dates back to ~2012 in Vanilla). Where problems usually arise from version to version is logging format changes, but it mostly just requires fiddling with the RegExp set up in the indiviual plugins.

Get started

Prerequisites

Setup

const { ScriptServer } = require('@scriptserver/core');
const { useEssentials } = require('@scriptserver/essentials');

const server = new ScriptServer({
  javaServer: {
    path: '.',
    jar: 'server.jar',
    args: ['-Xmx1024M', '-Xms1024M'],
  },
  rconConnection: {
    port: 25575,
    password: 'password',
  },
});

useEssentials(server);

server.start();
node server.js
enable-rcon=true
rcon.port=25575
rcon.password=password
broadcast-rcon-to-ops=false
node server.js

Plugins (& Docs)

Official

Community

Submit a ticket to get yours added!

Contributing