$aliasBytes = ConvertTo-StringBytes -Input $NewPlayerAlias -MinLength 20 -MaxLength 20
Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0x28 -Data $aliasBytes
$skin = Get-ChildItem "$InstallDirectory\skins" | ForEach-Object Name | Get-Random
$skinBytes = ConvertTo-StringBytes -Input $skin -MinLength 168 -MaxLength 168
Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0x48 -Data $skinBytes
$r = [Convert]::ToByte($(Get-Random -Maximum 255))
$g = [Convert]::ToByte($(Get-Random -Maximum 255))
$b = [Convert]::ToByte($(Get-Random -Maximum 255))
Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0xF0 -Data $r
Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0xF1 -Data $g
Edit-PatchBinary -FilePath "$InstallDirectory\cfg\players.dat" -Offset 0xF2 -Data $b