1.0.8 • Published 4 months ago

dathost-rcon-client v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

minecraft-rcon-client

Promise based minecraft rcon client, with support of types

Installation

npm i minecraft-rcon-client

Usage

const { Rcon } = require('minecraft-rcon-client')
const client = new Rcon({ // all of those are required!
    port: 25575,
    host: 'localhost',
    password: 'test'
})
client.connect().then(() => {
    client.send("time query day").then((response) => {
        console.log(response)
        client.disconnect()
    }).catch(err => {
        console.log("An error occurred while sending the query!")
    })
}).catch(err => {
    console.log("Connection to server cannot be established!")
})
1.0.8

4 months ago

1.0.2

10 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.1

11 months ago

1.0.0

11 months ago