rcon-client-fork
TypeScript icon, indicating that this package has built-in type declarations

3.2.0 • Public • Published

rcon-client-fork

This is a fork of rcon-client that was created because the author of rcon-client didn't respond fast enough for us.

A simple and easy to use RCON client made to work with Minecraft servers. It's written in Typescript and uses async methods.

Basic Usage

import { Rcon } from "rcon-client"

const rcon = await Rcon.connect({
    host: "localhost", port: 25575,
    password: "password"
})

console.log("Connected")

let listResponse = await rcon.send("list")
console.log(listResponse)

let responses = await Promise.all([
    rcon.send("help"),
    rcon.send("whitelist list")
])

for (response of responses) {
    console.log(response)
}

rcon.end()

More examples are in the examples/ folder.

Further Reading

Read more about the RCON Protocol

License

MIT

Package Sidebar

Install

npm i rcon-client-fork

Weekly Downloads

0

Version

3.2.0

License

MIT

Unpacked Size

14.5 kB

Total Files

12

Last publish

Collaborators

  • hornwitser