rumblefrog / Anti-Private

A sourcemod plugin that kicks private profile & inventory
https://forums.alliedmods.net/showthread.php?t=302728
GNU General Public License v3.0
19 stars 6 forks source link

[FeatureRequest] CS:GO inventory check. #11

Closed BattlefieldTsk closed 2 years ago

BattlefieldTsk commented 6 years ago
  1. Private inventory:

curl https://steamcommunity.com/profiles/76561198157196XXX/inventory/json/730/2

{"success":false,"Error":"This profile is private."}

  1. Public inventory:

curl https://steamcommunity.com/profiles/76561198008900XXX/inventory/json/730/2

{"success":true,"rgInventory":{"14581506282":etc

  1. After 3-d request per minute for the same URL:

header is curl -I https://steamcommunity.com/profiles/76561198157196XXX/inventory/json/730/2

HTTP/1.1 429 Too Many Requests

or body is $ curl https://steamcommunity.com/profiles/76561198157196XXX/inventory/json/730/2

null

rumblefrog commented 6 years ago

So what's the feature request? Or is this a bug fix request.

BattlefieldTsk commented 6 years ago

This not a bug report. This is request of new feature (functional). Now after run CS:GO server with this plugin i received message "This game does not support private inventory check". (https://github.com/rumblefrog/Anti-Private/blob/master/Anti_Private.sp#L87) This is normal behavior, because CS:GO is not supported now.

Add the ability to check opened or closed CS:GO inventory for all using the report above.

kjsmita6 commented 4 years ago

Fixed by #17 , although you would need to edit InventoryURL to be https://steamcommunity.com/inventory/%s/730/2?l=english&count=1 and recompile.

Edit: No need to change the inventory URL since players can't make their inventory private for one game and public for another, so the TF2 url would work for CSGO and any other game.

rumblefrog commented 2 years ago

Fixed by #17