You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Goldsource` (`hlds`) | `cstrike`, `czero`, `valve`. Should work for all `hlds` games.
15
15
16
16
The libraries will probably work on a lot more games than those in the list.
@@ -19,60 +19,46 @@ The libraries will probably work on a lot more games than those in the list.
19
19
20
20
The libraries are *stateless* - that is, `SourceQuery`, `SourceRcon`, and `GoldsourceRcon` are pure functions, storing no authentication or challenge states. This is to be expected for Source Queries, but not for Rcon. A possible future area of improvement would be to make `SourceRcon` and `GoldsourceRcon` construct and return a stateful Rcon object, that would improve client performance especially when multiple rcon commands need to be executed in sequence.
21
21
22
-
## SourceQuery Examples
22
+
## Usage
23
23
24
-
### Source Engine
24
+
### SourceQuery
25
25
26
26
```powershell
27
+
# Source Engine
27
28
Import-Module SourceQuery
28
-
29
-
# A2S_INFO query
30
-
SourceQuery -Address $ip -Port $port -Engine 'Source' -Type 'info' # Returns a hashtable of server metadata
31
-
32
-
# A2S_PLAYER query
33
-
SourceQuery -Address $ip -Port $port -Engine 'Source' -Type 'players' # Returns a hashtable of players
34
-
35
-
# A2S_RULES query
36
-
SourceQuery -Address $ip -Port $port -Engine 'Source' -Type 'rules' # Returns a hashtable of server cvars
37
-
38
-
# A2A_PING query
39
-
SourceQuery -Address $ip -Port $port -Engine 'Source' -Type 'ping' # Returns a hashtable of whether the ping was successful
40
-
```
41
-
42
-
### Goldsource Engine
43
-
44
-
```powershell
29
+
# A2S_INFO query. Returns a hashtable of server metadata
0 commit comments