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.
DependenciesThis addon requires
ULib v2 to work properly.
Downloadhttps://forums.ulyssesmod.net/index.php?action=dlattach;topic=9087.0;attach=1190Installation• 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
NotificationsBy default, this module is almost completely silent. In order to enable notifications, add the following to your cfg/server.cfg:
// 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 CommandsCategory: Steam Family Sharing
o ulx lender <player> - Opens the Steam profile page of the person your target is lending the game from. (say: !lender)
TroubleshootingThese console commands will only work from the server console.Steam Web API Key:
sfsm_validate_apikeyAddon notifications:
sfsm_validate_notificationsFeedbackIf there is anything I can improve on, I'd love to hear it. :)