mirror of
https://github.com/onyx-and-iris/q3rcon-ps.git
synced 2025-01-18 16:50:52 +00:00
38 lines
612 B
Markdown
38 lines
612 B
Markdown
|
# Q3 Rcon client for Powershell
|
||
|
|
||
|
Send Rcon commands to your Quake-3 Engine server from Powershell!
|
||
|
|
||
|
## Tested against
|
||
|
|
||
|
Currently only tested on COD servers (2, 4 and 5).
|
||
|
|
||
|
## Requirements
|
||
|
|
||
|
- Powershell 7.2+
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
`Install-Module -Name Q3Rcon -Scope CurrentUser`
|
||
|
|
||
|
## Use
|
||
|
|
||
|
```powershell
|
||
|
Import-Module Q3Rcon
|
||
|
|
||
|
try {
|
||
|
$rcon = Connect-Rcon -hostname "hostname.server" -port 28960 -passwd "strongrconpassword"
|
||
|
|
||
|
$rcon.Map()
|
||
|
|
||
|
"Rotating the map..."
|
||
|
$rcon.MapRotate()
|
||
|
|
||
|
Start-Sleep -Milliseconds 3000 # wait for map to rotate
|
||
|
|
||
|
$rcon.Map()
|
||
|
}
|
||
|
finally {
|
||
|
Disconnect-Rcon -rcon $rcon
|
||
|
}
|
||
|
```
|