A PowerShell module to interact with services provided by UWMC (Unlimitedworld).
- First, get a copy of this repository. Preferably via
git clone https://github.com/joestr/Uwmc.Ps.git
. - Navigate to the cloned repository with
cd Uwmc.Ps
- Import the module within PowerShell:
Import-Module ./source/Uwmc.Ps.psd1
Commandlet: Get-UwOnlinePlayers
Arguments: -IncludePlayerUid
→ tries to resolve player names to their UUID; represented in the PlayerUid
field or else $null
Returns: An array of online players.
Example: Get-UwOnlinePlayers | Where-Object -Property Priority -LE 30
Commandlet: Get-UwPlayerVotes
Arguments: -IncludePlayerUid
→ tries to resolve player names to their UUID; represented in the PlayerUid
field or else $null
Returns: An array of player votes.
Example: Get-UwPlayerVotes | Where-Object -Property PlayerName -In @("joestr")
Commandlet: Get-UwZones
Arguments ForceRefresh
→ Forcibly renew cached content
Returns: An array of zones.
Example: Get-UwZones | Where-Object ZoneType -EQ 1 | Where-Object Label -Like '*TMD#1*'