File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,15 +37,15 @@ SourceQuery -Address $address -Port $port -Engine 'Source' -Type 'rules'
3737# A2A_PING query. Returns a hashtable of whether the ping was successful
3838SourceQuery -Address $address -Port $port -Engine 'Source' -Type 'ping'
3939
40- # GoldSource Engine
40+ # Goldsource Engine
4141# A2S_INFO query - Returns a hashtable of server metadata
42- SourceQuery -Address $address -Port $port -Engine 'GoldSource ' -Type 'info'
42+ SourceQuery -Address $address -Port $port -Engine 'Goldsource ' -Type 'info'
4343# A2S_PLAYER query. Returns a hashtable of players
44- SourceQuery -Address $address -Port $port -Engine 'GoldSource ' -Type 'players'
44+ SourceQuery -Address $address -Port $port -Engine 'Goldsource ' -Type 'players'
4545# A2S_RULES query, Returns a hashtable of server cvars
46- SourceQuery -Address $address -Port $port -Engine 'GoldSource ' -Type 'rules'
46+ SourceQuery -Address $address -Port $port -Engine 'Goldsource ' -Type 'rules'
4747# A2A_PING query. Returns a hashtable of whether the ping was successful
48- SourceQuery -Address $address -Port $port -Engine 'GoldSource ' -Type 'ping'
48+ SourceQuery -Address $address -Port $port -Engine 'Goldsource ' -Type 'ping'
4949```
5050
5151### Rcon
@@ -56,7 +56,7 @@ Import-Module PSSourceQuery
5656# Source Engine
5757SourceRcon -Address $address -Port $port -Password $rcon_password -Command 'status'
5858
59- # GoldSource Engine
59+ # Goldsource Engine
6060GoldsourceRcon -Address $address -Port $port -Password $rcon_password -Command 'status'
6161```
6262
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Describe "GoldSourceRcon" -Tag 'Unit' {
77 Context ' Runs' {
88
99 $gameservers = [ordered ]@ {
10- # GoldSource
10+ # Goldsource
1111 cstrike = @ {
1212 Address = ' cs.startersclan.com'
1313 Port = 27815
Original file line number Diff line number Diff line change @@ -23,21 +23,21 @@ Describe "SourceQuery" -Tag 'Unit' {
2323 Port = 27215
2424 Engine = ' Source'
2525 }
26- # GoldSource
26+ # Goldsource
2727 cstrike = @ {
2828 Address = ' cs.startersclan.com'
2929 Port = 27815
30- Engine = ' GoldSource '
30+ Engine = ' Goldsource '
3131 }
3232 czero = @ {
3333 Address = ' cs.startersclan.com'
3434 Port = 27615
35- Engine = ' GoldSource '
35+ Engine = ' Goldsource '
3636 }
3737 valve = @ {
3838 Address = ' hl.startersclan.com'
3939 Port = 27915
40- Engine = ' GoldSource '
40+ Engine = ' Goldsource '
4141 }
4242 }
4343
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ function SourceQuery {
104104 ,
105105 [parameter (Mandatory = $true )]
106106 [ValidateNotNullOrEmpty ()]
107- [ValidateSet (' GoldSource ' , ' Source' )]
107+ [ValidateSet (' Goldsource ' , ' Source' )]
108108 [string ]$Engine
109109 ,
110110 [parameter (Mandatory = $true )]
@@ -343,7 +343,7 @@ function SourceQuery {
343343 $packetCount = $buffer.GetByte () # 1
344344 $packetNumber = $buffer.GetByte () # 1
345345 $packetSize = $buffer.GetShort () # 2
346- }elseif ($Engine -match ' ^GoldSource $' ) {
346+ }elseif ($Engine -match ' ^Goldsource $' ) {
347347 if ($cnt -eq 0 ) {
348348 $packetCount = $buffer.GetByte () # 1
349349 }else {
You can’t perform that action at this time.
0 commit comments