Greetings, feudalists!
If you tired of players who tries to avoid your ban via Steam Family Library Sharing feature, this mod is for you!
BasilMod::SteamFamilyAccess is an access control mod to deal with Steam Family Library Sharing feature.
You can completely disable Shared Library access to your server.
Or you can enable Shared Library access to you server. In this case mod will check if source account(who provided the shared access to the game) is banned(not active) on your server, and apply those restrictions to shared account as well.
This is server-side only mod.
This mod
does not require BasilMod::Pack.
This mod is part of
BasilMods bundleServer-side installation and configuration.
Spoiler
Find latest version here:
https://www.dropbox.com/sh/xuadph1y7ywr ... spw6a?dl=0Installation.
- Download and place mod files into "BasilMod/steamfamilyaccess/" folder of server root.
- Add this line to the end of file "main.cs" of the server:
- Code: Select all
exec("BasilMod/steamfamilyaccess/steamfamilyaccess.cs");
If you are using BasilMod::Pack, place this line after BasilMod::Pack load. - Update your config.cs configuration file with info.
- Start server.
Configuration.
- You need to obtain SteamWeb API key in order to control family library access. You can obtain one here.
- Setup apikey, and other variables.
- Start server.
- If configuration is changed, you can reload config by executing this command at server:
- Code: Select all
exec("BasilMod/steamfamilyaccess/steamfamilyaccess.cs");
Available variables at config file:
- $BasilMod::steamfamilyaccess::apikey - Steam WEBApi key
You can obtain one here. - $BasilMod::steamfamilyaccess::allowed - If Family Library Sharing allowed on this server.
- $BasilMod::steamfamilyaccess::textDisabled - Text to be shown for players who are using Family Library, and access is disabled by previous variable.
- $BasilMod::steamfamilyaccess::textBanned - Text to be shown for players who are using Family Library, but source account is not allowed on the server (i.e. banned).
- $BasilMod::steamfamilyaccess::allowUnknown = true;
Allow or deny access for accounts who uses family sharing, but base (original owner of the game) never played on your server. - $BasilMod::steamfamilyaccess::textUnknown = "You are using Family Library sharing, and base account is not know to the server. Access denied.";
Message to be shown to players, if previous option is set to "false" and player account matches the rule.
Example config:
- Code: Select all
$BasilMod::steamfamilyaccess::apikey = "MyWebAPIKeyGoesHere";
$BasilMod::steamfamilyaccess::allowed = true;
$BasilMod::steamfamilyaccess::textDisabled = "Family Library sharing access is not allowed on this server.";
$BasilMod::steamfamilyaccess::textBanned = "Your Family Library sharing account is not allowed on this server.";
$BasilMod::steamfamilyaccess::allowUnknown = true;
$BasilMod::steamfamilyaccess::textUnknown = "You are using Family Library sharing, and base account is not know to the server. Access denied.";