File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
src/Syntax/SteamApi/Steam Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments