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.
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.
Prerequisites
Setup
npm init
with the default options and then npm i @scriptserver/core @scriptserver/essentials
server.js
with the following contentconst { 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
eula.txt
and within server.properties
make the following changes (they need to match whatever is specified in the config above):enable-rcon=true
rcon.port=25575
rcon.password=password
broadcast-rcon-to-ops=false
node server.js
Official
~home
)Community
Submit a ticket to get yours added!
npm i -g lerna
lerna bootstrap
to link all packageslerna run build
to build all packages