Compare commits

...

2 Commits

Author SHA1 Message Date
0e5ee0e523 md 2023-11-30 22:43:32 +00:00
47e280c977 add Rcon class section to README. 2023-11-30 22:38:05 +00:00

View File

@ -35,3 +35,19 @@ finally {
Disconnect-Rcon -rcon $rcon
}
```
## Rcon Class
#### `Send($cmd) | Send($cmd, $timeout)`
```powershell
$rcon.Send("mapname")
$rcon.Send("g_gametype dm")
$rcon.Send("map_rotate", 2000)
```
If the command returns a response it will be printed to the console.
Pass an optional timeout (ms) for commands that return responses in fragments. (status, map_rotate etc...)