Skip to content

Commit e90b686

Browse files
committed
Added ISteamUser/GetPlayerBans
1 parent b937c9e commit e90b686

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/Syntax/SteamApi/Steam/User.php

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,28 @@ public function GetPlayerSummaries($steamId = null)
3535

3636
return $players;
3737
}
38+
39+
public function GetPlayerBans($steamId = null)
40+
{
41+
// Set up the api details
42+
$this->method = __FUNCTION__;
43+
$this->version = 'v1';
44+
45+
if ($steamId == null) {
46+
$steamId = $this->steamId;
47+
}
3848

49+
// Set up the arguments
50+
$arguments = [
51+
'steamids' => $steamId
52+
];
53+
54+
// Get the client
55+
$client = $this->setUpClient($arguments);
56+
57+
return $client->players;
58+
}
59+
3960
public function GetFriendList($relationship = 'all')
4061
{
4162
// Set up the api details
@@ -73,4 +94,4 @@ protected function convertToObjects($players)
7394

7495
return $cleanedPlayers;
7596
}
76-
}
97+
}

0 commit comments

Comments
 (0)