ULX

Author Topic: Stop ban evasion via Steam Family Sharing  (Read 6164 times)

0 Members and 1 Guest are viewing this topic.

Offline Timmy

  • Ulysses Team Member
  • Full Member
  • *****
  • Posts: 218
  • Karma: 161
  • Code monkey
    • ULX Unofficial Documentation
Stop ban evasion via Steam Family Sharing
« on: November 04, 2015, 06:51:18 AM »
Steam Family Sharing Module
Prevents players from evading bans through the Steam Family Sharing feature.

What does this module do exactly?
• Banning someone that is lending Garry's Mod will automatically ban the lender as well.
• Lendees that join your server while their parent account is banned will inherit that same ban on their own account.

Dependencies
This addon requires ULib v2 to work properly.

Download
https://forums.ulyssesmod.net/index.php?action=dlattach;topic=9087.0;attach=1190

Installation
• Extract the downloaded zip archive into your addons folder
• Obtain a Steam Web API key
   – Go to https://steamcommunity.com/dev/apikey and sign in if you haven't already
   – Enter a domain name and tick the checkbox for "I agree to the Steam Web API Terms of Use", then click "Register"
   – Hooray, you now have an API key to use in the next step
• Add your API key to addons/<this_addon>/lua/ulib/modules/server/sfsm.lua (line 20, you can't miss it)
• Optional: Configure notifications (see below)
• Restart your server

Notifications
By default, this module is almost completely silent. In order to enable notifications, add the following to your cfg/server.cfg:
Code: [Select]
// Should superadmins be notified when a lendee joins the game?
sfsm_notify_lendee_join  1

// Should superadmins be notified when a player tries to avoid a ban via SFS?
sfsm_notify_player_avoid 1

// Should superadmins be notified when a lender was banned because of a lendee?
sfsm_notify_lender_ban   1

// Should we send these notifications to regular admins too?
sfsm_notify_admins       1
If your answer to any of these questions is "no" then change the 1 on the next line to 0.

ULX Commands
Code: [Select]
Category: Steam Family Sharing
o ulx lender <player> - Opens the Steam profile page of the person your target is lending the game from. (say: !lender)

Troubleshooting
These console commands will only work from the server console.
Steam Web API Key: sfsm_validate_apikey
Addon notifications: sfsm_validate_notifications

Feedback
If there is anything I can improve on, I'd love to hear it. :)
« Last Edit: July 11, 2018, 12:18:49 AM by Timmy »
“When given the choice between being right or being kind, choose kind.”  —Dr. Wayne Dyer

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: Steam Family Sharing Module for ULib
« Reply #1 on: December 06, 2015, 04:02:29 PM »
This looks truly amazing!!!!!!!!!!!!!!!!!!!!!!!! Im trying it out now!

Offline Luk | twitch.tv/doctorluk

  • Newbie
  • *
  • Posts: 40
  • Karma: 12
Re: Steam Family Sharing Module for ULib
« Reply #2 on: December 11, 2015, 12:19:00 PM »
Hey, thank you very much for this release. I've modified it to work with my SBan installation. If you want to integrate SourceBans and need any help, hit me up on Steam or via PM.

EDIT: To minimize any chances of confusion, maybe you should consider renaming the config variables and add a prefix like "sfsm_" so it will result in "sfsm_notify_admins 1" as "notify_admins" is very generic.
« Last Edit: December 11, 2015, 12:22:44 PM by Luk | twitch.tv/doctorluk »
Host of Spielwiese der Erwachsenen, a German TTT Server for adults only.

Offline Timmy

  • Ulysses Team Member
  • Full Member
  • *****
  • Posts: 218
  • Karma: 161
  • Code monkey
    • ULX Unofficial Documentation
Re: Steam Family Sharing Module for ULib
« Reply #3 on: December 11, 2015, 03:25:16 PM »
Hey, thank you very much for this release. I've modified it to work with my SBan installation. If you want to integrate SourceBans and need any help, hit me up on Steam or via PM.

EDIT: To minimize any chances of confusion, maybe you should consider renaming the config variables and add a prefix like "sfsm_" so it will result in "sfsm_notify_admins 1" as "notify_admins" is very generic.
That's amazing! I will add "SourceBans integration" to my list of things I should do after I finish my exams. :D

Good call on the console variables - they are now prefixed.

Addon updated!
[CHANGE] Console variables are now prefixed with "sfsm_"
[FIX] Lua error when player disconnects before an API response was received

Thank you, Luk. :)
“When given the choice between being right or being kind, choose kind.”  —Dr. Wayne Dyer

Offline FalZziE

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Steam Family Sharing Module for ULib
« Reply #4 on: December 13, 2015, 01:38:29 PM »
is there a way to see the account this lendee is linked to ?

Offline Timmy

  • Ulysses Team Member
  • Full Member
  • *****
  • Posts: 218
  • Karma: 161
  • Code monkey
    • ULX Unofficial Documentation
Re: Steam Family Sharing Module for ULib
« Reply #5 on: December 13, 2015, 04:52:33 PM »
is there a way to see the account this lendee is linked to ?
Yes, but not yet within this module. Possibly in the next version. :)
“When given the choice between being right or being kind, choose kind.”  —Dr. Wayne Dyer

Offline FalZziE

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Steam Family Sharing Module for ULib
« Reply #6 on: December 14, 2015, 09:48:49 AM »
ok thx i'll waiting it then :D

Offline Timmy

  • Ulysses Team Member
  • Full Member
  • *****
  • Posts: 218
  • Karma: 161
  • Code monkey
    • ULX Unofficial Documentation
Re: Steam Family Sharing Module
« Reply #7 on: December 18, 2015, 07:47:09 PM »
SourceBans Integration
See my ULib SourceBans Module which will make sure ULib takes SourceBans into account.

Addon updates
[ADD] Notification "sfsm_notify_lendee_join" now contains the steamID of the lender
[ADD] ULX now logs the steamID of the lender
[ADD] ULX command: !lender - opens up the Steam profile of the lender
[FIX] Lua error when when parent account is banned without supplying a reason
“When given the choice between being right or being kind, choose kind.”  —Dr. Wayne Dyer

Offline godfather0001

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Stop ban evasion via Steam Family Sharing
« Reply #8 on: September 10, 2019, 02:23:23 AM »
This is a great addon.

I just wanted to know, is there a way this addon could have an option that stops a family sharing account from joining the server all together? Regardless on whether the main account or shared account is banned or not.

Offline Timmy

  • Ulysses Team Member
  • Full Member
  • *****
  • Posts: 218
  • Karma: 161
  • Code monkey
    • ULX Unofficial Documentation
Re: Stop ban evasion via Steam Family Sharing
« Reply #9 on: September 10, 2019, 05:58:30 AM »
Thanks! :)

No, this addon does not have the ability to disable family sharing.

A quick web search revealed a similar addon: https://github.com/C0nw0nk/Garrys-Mod-Family-Sharing. It mentions the ability to block all family sharing accounts. I think it might meet your requirements.
“When given the choice between being right or being kind, choose kind.”  —Dr. Wayne Dyer