3.2.0 • Published 5 years ago

rcon-client-fork v3.2.0

Weekly downloads
8
License
MIT
Repository
gitlab
Last release
5 years ago

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

3.2.0

5 years ago