Skip to content

Ecojs/Rcon

Repository files navigation

ECO RCON Interface

npm GitHub Sponsors GitHub issues GitHub npm bundle size (scoped) Codacy grade GitHub GitHub commit activity

GitHub package.json version GitHub release (latest SemVer)

Our Discord

Installation

NPM

npm install @eco.js/rcon

YARN

yarn add @eco.js/rcon

Documentation

Documentation can be found HERE

Docs

Usage

// Example Usage that bans all players with a given word or phrase in their name.
import { ECO } from '@eco.js/rcon';

const myServer = new ECO('127.0.0.1', 8000, 'mypassword');

await myServer.onReady;

const response = await myServer.send('kick snow_e,You have been kicked');