mirror of
https://github.com/onyx-and-iris/q3rcon-ps.git
synced 2025-04-19 20:13:48 +01:00
Compare commits
2 Commits
b712768f97
...
0e5ee0e523
Author | SHA1 | Date | |
---|---|---|---|
0e5ee0e523 | |||
47e280c977 |
16
README.md
16
README.md
@ -35,3 +35,19 @@ finally {
|
|||||||
Disconnect-Rcon -rcon $rcon
|
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...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user