mirror of
https://codeberg.org/spire/webrcon.git
synced 2026-06-03 17:24:07 +02:00
Update readme
This commit is contained in:
parent
d31f85965e
commit
82b6deb2f3
1 changed files with 9 additions and 0 deletions
|
|
@ -40,3 +40,12 @@ const rcon = new Rcon('127.0.0.1', 'secret_rcon_password');
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### API
|
||||||
|
|
||||||
|
|
||||||
|
- `status(): Promise<Object>` get server status including players
|
||||||
|
- `getSVar(string: name): Promise<String>` get the value of a server var
|
||||||
|
- `setSVar(string: name, string: value): Promise` set the value of a server var
|
||||||
|
- `changeLevel(string: level): Promise` change the level
|
||||||
|
- `sendString(string: command): Promise<string>` send a raw rcon command
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue