@eco.js/rcon
Version:
An RCON Interface for ECO
43 lines (24 loc) • 1.71 kB
Markdown
# ECO RCON Interface
  [](https://github.com/Ecojs/Rcon/issues)   [](https://www.codacy.com/gh/Ecojs/Rcon/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Ecojs/Rcon&utm_campaign=Badge_Grade)  
 
[Our Discord](https://discord.gg/uzeWjVTPSQ)
# Installation
NPM
```bash
npm install @eco.js/rcon
```
YARN
```bash
yarn add @eco.js/rcon
```
# Documentation
Documentation can be found [HERE](https://ecojs.github.io/Rcon/modules.html)

# Usage
```ts
// 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');
```