Ulysses Stuff > Releases

Stop ban evasion via Steam Family Sharing

(1/3) > >>

Timmy:
Steam Family Sharing ModulePrevents 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: ---// 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
--- End code ---
If your answer to any of these questions is "no" then change the 1 on the next line to 0.

ULX Commands

--- Code: ---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)

--- End code ---

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. :)

XxLMM13xX:
This looks truly amazing!!!!!!!!!!!!!!!!!!!!!!!! Im trying it out now!

Luk | twitch.tv/doctorluk:
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.

Timmy:

--- Quote from: Luk | twitch.tv/doctorluk 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.

--- End quote ---
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. :)

FalZziE:
is there a way to see the account this lendee is linked to ?

Navigation

[0] Message Index

[#] Next page

Go to full version