1. Mughisi submitted a new resource:

    Family Share Blocker - Block family shared accounts from joining your server.

    Read more about this resource...
     
  2. So does this only check for shared account when a player joins?
     
  3. Yep, that's exactly what it does.
     
  4. No information on the spam "Webrequest failed. Error code 0." in the console?
     
  5. I currently have no idea on why and how it would fail :( Is it always failing or does it sometimes work?
     
  6. This error is systematic , but the player blocking work.
     
  7. Says i need to set a steam API key when I already have one.
     
  8. Did you add your API key to the config and did you reload the plugin after doing that?
     
  9. You must do this in .config.

    Code:
                if (APIKey == defaultAPIKey || APIKey == "")
                {
                    Log("Error! No Steam API key found.");
    Never change "string defaultAPIKey = "STEAM_API_KEY";"

    ---

    Mughisi Suggestion :
    Code:
      void CanClientLogin(Network.Connection connection)
      {
      if (APIKey == "STEAM_API_KEY" || APIKey == "")
      {
      Log("Error! No Steam API key found.");
      Log("You need to set your API key in the configuration file for this plugin to work!");
      Log("To obtain an API key browse to http://steamcommunity.com/dev/apikey");
      return;
      }
    
    For those who have a mania for change directly in the plugin before sending it to the server. :p
    You avoid worries.

    I wonder if he has not been found another method.
    (How RustAdmin detects family sharing?)

    Because the API steam is often slow.
     
    Last edited by a moderator: Apr 27, 2015
  10. SteamAPI is the only way I know off, and at the top of the file it clearly says not to edit the plugin but the json file in the config folder
    Code:
            // Do not modify these values, to configure this plugin edit
            // 'FamilyShareBlocker.json' in your server's config folder.
            // <drive>:\...\server\<server identity>\oxide\config\
     
  11. Ah I didn't read the comments. Thanks.
     
  12. Mughisi, my VS15 throw an error on those lines:
    [​IMG]

    What is project property to make this work :/ C# 6, Newton is onboard

    Why asking: i want to make this plugin work with with Enhanсed ban system and ban cheaters main account, while letting people with shared play normally.
     
    Last edited by a moderator: Apr 29, 2015
  13. Wulf

    Wulf Community Admin

    Make sure you are using the latest version of VS 2015.
     
  14. Just downloaded (previously coded in 2012), .net 4.5.3
    looks like CTP version required, dling :)
     
  15. Yep, Visual Studio 2015 CTP 6 is required :)
     
  16. Yeah, already done what i want :) i can post changes i done here, if you want
    [DOUBLEPOST=1430352075,1430343525][/DOUBLEPOST]They should work together now :)
     

    Attached Files:

  17. any info on this error code im getting [FamilyShareBlocker] FamilyShareBlocker : Webrequest failed. Error code 403. thanks
     
  18. Wulf

    Wulf Community Admin

    403 = permission denied by Steam. Make sure you have a valid Steam API key set.
     
  19. i may be doing this wrong in the config but should the api key part look like this? "SteamAPIKey": " 29A1AA411C2CAACF449464576EA8D57C"