Raised This Month: $32 Target: $400
 8% 

[ANY] Anti Private Profile & Inventory


Post New Thread Reply   
 
Thread Tools Display Modes
Author
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Plugin ID:
5907
Plugin Version:
v1.2.6
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Kick/Warn users with private profile or inventory
    Old 11-08-2017 , 19:33   [ANY] Anti Private Profile & Inventory
    Reply With Quote #1



    Kicks private profile & inventory

    ***


    ConVar
    • sm_anti_private_inventory Whether or not to check for private inventory (0 - Disable Inventory Checking, 1 - Enable Inventory Checking) [Default: 1.0] (Min: 0.0) (Max: 1.0)
    • sm_anti_private_deal_method Method of action when private profile/inventory has been detected (1 - Kick | 2 - Warn) [Default: 1.0] (Min: 1.0) (Max: 2.0)
    • sm_anti_private_fail_method Method of action when the plugin fails to fetch result (1 - Nothing | 2 - Kick) [Default: 1.0] (Min: 1.0) (Max: 2.0)
    • sm_anti_private_log Whether or not to log HTTP requests to file (0 - Disable logging, 1 - Enable logging) [Default: 1.0] (Min: 0.0) (Max: 1.0)
    • sm_anti_private_key Steam Developer API Key; Required for this plugin to work

    Prerequisites
    Installation
    1. Extract Anti_Private.smx to /addons/sourcemod/plugins
    2. Extract anti_private.phrases.txt to /addons/sourcemod/translations
    3. Load the plugin (sm plugins load Anti_Private), change the map, OR restart the server
    4. Edit /cfg/sourcemod/anti_private.cfg
    5. Reload the plugin (sm plugins reload Anti_Private), change the map, OR restart the server

    Notes
    • Profiles that aren't configured are also blocked
    • Friends-only will be considered private as long as the owner of the API key is not friend with that individual
    • Steam takes account of owner's relation to their API
    • With high traffic servers, you may exceed Steam's API rate limit
    • Since this plugin depends on Steam, during Steam maintenance/outage (Tuesday), this plugin may not work

    Translations

    If you wish to contribute to the phrases file, please fork this repository and open a pull request

    Plans & Bugs

    Issue tracker

    Changelog

    Commits

    Download

    Download the latest version from the release page.

    Source

    You can view the source here.

    License

    GPL-3.0

    Icon made by Freepik from http://www.flaticon.com
    __________________

    Last edited by RumbleFrog; 12-10-2017 at 18:36. Reason: v1.2.5
    RumbleFrog is offline
    Scag
    AlliedModders Donor
    Join Date: May 2017
    Location: Crashing Hale
    Old 11-08-2017 , 20:43   Re: [ANY] Anti Private Profile & Inventory
    Reply With Quote #2

    I think it'd be cool if you could make this register with profiles that aren't set up. Dunno if it's possible but that would be extremely useful.
    __________________
    Over-engineering is underrated.

    GitHub
    BTC
    ETH

    Retired
    Scag is offline
    RumbleFrog
    Great Tester of Whatever
    Join Date: Dec 2016
    Location: Fish Tank
    Old 11-08-2017 , 20:52   Re: [ANY] Anti Private Profile & Inventory
    Reply With Quote #3

    Quote:
    Originally Posted by Ragenewb View Post
    I think it'd be cool if you could make this register with profiles that aren't set up. Dunno if it's possible but that would be extremely useful.
    Thanks for the suggestion! This is now available within v1.0.1.
    __________________
    RumbleFrog is offline
    RumbleFrog
    Great Tester of Whatever
    Join Date: Dec 2016
    Location: Fish Tank
    Old 11-08-2017 , 22:10   Re: [ANY] Anti Private Profile & Inventory
    Reply With Quote #4

    Added Spanish translations.
    __________________
    RumbleFrog is offline
    romeo7
    Senior Member
    Join Date: Mar 2017
    Old 11-09-2017 , 03:03   Re: [ANY] Anti Private Profile & Inventory
    Reply With Quote #5

    Nice work! Thanks.
    romeo7 is offline
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 11-09-2017 , 03:41   Re: [ANY] Anti Private Profile & Inventory
    Reply With Quote #6

    Reminds me of these two plugins:

    https://forums.alliedmods.net/showthread.php?t=255871
    https://forums.alliedmods.net/showthread.php?p=2329976

    I don't use either of those anymore because, after running one of those for a long time, I found out that it was blocking EVERYONE, and now I'm paranoid about what exactly those plugins do, especially in times when Steam is down.

    I also don't have a lot of confidence in whether or not they know it works how it should in every scenario.

    hmhm
    __________________
    Chdata is offline
    RumbleFrog
    Great Tester of Whatever
    Join Date: Dec 2016
    Location: Fish Tank
    Old 11-09-2017 , 06:02   Re: [ANY] Anti Private Profile & Inventory
    Reply With Quote #7

    Quote:
    Originally Posted by Chdata View Post
    Reminds me of these two plugins:

    https://forums.alliedmods.net/showthread.php?t=255871
    https://forums.alliedmods.net/showthread.php?p=2329976

    I don't use either of those anymore because, after running one of those for a long time, I found out that it was blocking EVERYONE, and now I'm paranoid about what exactly those plugins do, especially in times when Steam is down.

    I also don't have a lot of confidence in whether or not they know it works how it should in every scenario.

    hmhm
    Thanks for your concern, but this plugin does not utilize any sort of database cache, so you can be sure I'm getting the data straight from Steam. During downtime, Steam will not return 200OK, and this plugin handle it as HTTP failure and the default method is to allow the user to stay on the server.
    __________________

    Last edited by RumbleFrog; 11-09-2017 at 06:03.
    RumbleFrog is offline
    RumbleFrog
    Great Tester of Whatever
    Join Date: Dec 2016
    Location: Fish Tank
    Old 11-09-2017 , 09:56   Re: [ANY] Anti Private Profile & Inventory
    Reply With Quote #8

    Quote:
    Originally Posted by Chdata View Post
    Reminds me of these two plugins:

    https://forums.alliedmods.net/showthread.php?t=255871
    https://forums.alliedmods.net/showthread.php?p=2329976

    I don't use either of those anymore because, after running one of those for a long time, I found out that it was blocking EVERYONE, and now I'm paranoid about what exactly those plugins do, especially in times when Steam is down.

    I also don't have a lot of confidence in whether or not they know it works how it should in every scenario.

    hmhm
    Here's are the lines that handles the HTTP failure:

    https://github.com/RumbleFrog/Anti-P...e.sp#L302-L308
    __________________

    Last edited by RumbleFrog; 11-09-2017 at 09:57.
    RumbleFrog is offline
    RumbleFrog
    Great Tester of Whatever
    Join Date: Dec 2016
    Location: Fish Tank
    Old 11-10-2017 , 16:48   Re: [ANY] Anti Private Profile & Inventory
    Reply With Quote #9

    Just to emphasize, you only need one of SteamWorks or SteamTools, not both.
    __________________
    RumbleFrog is offline
    RumbleFrog
    Great Tester of Whatever
    Join Date: Dec 2016
    Location: Fish Tank
    Old 11-10-2017 , 20:56   Re: [ANY] Anti Private Profile & Inventory
    Reply With Quote #10

    I forgot to enclose a quotation mark in v1.0.1's translation, it's now addressed in v1.0.2 with proper French & Spanish translation.
    __________________
    RumbleFrog is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:26.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode