Skip to content

A Node.js library for controlling an Rcon via the command line

License

Notifications You must be signed in to change notification settings

bloomkd46/Rcon-Console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terminal-icon

version downloads license

node-rcon is a simple library for connecting to RCON servers in node.js. It implements the protocol used by Valve's Source and GoldSrc engines, as well as many other game servers. It was originally created to connect to Minecraft's RCON server.

Installation

npm:

Make sure that you are running node.js 12.20.0 or newer (node -v)

npm install -g rcon-console

Usage

here are some example commands (if the command is more than 2 words surrond with ""'s)

rcon #This will connect without auto-executing any commands
rcon summon lightning_bolt #This will run `summon lightning_bolt` once connected
rcon "summon lightning_bolt ~ ~ ~" #This will run `summon lightning_bolt ~ ~ ~` once connected

this will connect to localhost:25575 with a password of password

for more commands and options see the wiki

Configuration

to change you config run rcon config edit

then either press enter to use the default value or type in what you want to change the value to.

for more options see configuration

Please submit a bug report for any game you try that doesn't work!

Note that some servers may close the connection if it is idle for a long period of time. enable keepAlive in your config to fix this.

About

A Node.js library for controlling an Rcon via the command line

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published