1. KeyboardCavemen submitted a new resource:

    Minimum Playtime Checker - Check if a player has enough time played on connect

    Read more about this resource...
     
  2. Getting the error

    [Oxide] 12:32 AM [Error] Plugin filename is incorrect: MinimumPlaytime.cs (shoul
    d be MinumumPlaytime.cs)
    [Oxide] 12:32 AM [Error] Plugin failed to compile: MinimumPlaytime (leaving prev
    ious version loaded)

    I renamed it to the incorrect spelling and it worked. So far working great!
     
  3. Excelent idea. You had a great idea here. I approve this. :)
     
  4. This should help fight off those hackers/abusers.
    As we'll likely have people request we add this to our system, we do not allow direct editing of plugins do you think you could consider a config for the api key and play time?
     
  5. Ah yes, we didn't bother creating a config as there were only 2 fields that could be edited but didn't consider that server providers don't allow direct editing of plugins. I'll create a config, think it will be done today.
     
  6. KeyboardCavemen updated Minimum Playtime Checker with a new update entry:

    Added configuration file.

     
  7. Like a baws, we've added this to our system! :)
     
  8. Cheers! Hope you enjoy!
     
  9. Hi,


    My server stays in a private machine. So the "domain name" asked by Steam won't have nothing to do with the server itself.

    I'm not sure if that was the cause, but I got a lot of connection errors to steam while trying to use your plugin. I did created the API and placed it accordingly.
     
  10. What do you mean with 'private machine'? Anyhow, I don't think this problem is caused by our mod.
     
  11. Great, it's been rejecting clients all day. :/ Grrrr..... API key was installed in config and reset.

    Code:
    75.172.XXXXXX62153/765611979XXXXXXX/Peoncrusher Rejecting connection - MinimumPlaytime failed to load your Rust playtime.
    75.172.xXXXXXX:62153/765611979XXXXXX/Peoncrusher kicked: MinimumPlaytime failed to load your Rust playtime.
    75.172.XXXXXXX:62153/7656119797XXXXXX/Peoncrusher Rejecting connection - Steam Auth Timeout
    75.172.XXXXXX:62153/765611979XXXXXXX/Peoncrusher kicked: Steam Auth Timeout
     
  12. Thank you for posting your issue. The error message you described is caused by the steam API not returning Rust as a recently played game, which is rather odd because to join a server you must run the game and therefore it should be listed in the recently played games. I could potentially change this method to looking up someone's entire steam library instead of recently played games if this happens too often but I'll need some data first.

    Could you maybe supply me a log of your server (preferably filtered, like your above log)? That would help significantly investigating these kind of issues. Basically the info I need is:
    -For how long has the mod runned on your server?
    -How many players have been rejected during this time (If you could provide the player's steam ID, that'd be great, then I could, if not private, check their steam profile to find possible clue's to this issue with the Steam API)
    -What was the reason he was rejected?

    For privacy reasons I suggest you e-mail the log rather than posting it here. Our e-mail adress: [email protected]
    [DOUBLEPOST=1436181107,1436163111][/DOUBLEPOST]
    A fix is on the way for this issue, will be uploaded later today! Again thanks for bringing it to our attention.
     
  13. Hi,

    I just downloaded and installed the plugin, and I'm getting the following error:

    [Oxide] 10:21 AM [Error] Error while compiling MinimumPlaytime.cs(11,22): error CS1519: Unexpected s
    ymbol `10' in class, struct, or interface member declaration

    xxxxxxxxxxxxxxxxxxxxxxxx
    FORGET IT... Lol.

    My bad, I was editing the wrong file. Sorry. Now it seems to be working. Thanks.

    Just a tip: There could a line at the config, where you could translate the message.
     
    Last edited by a moderator: Jul 6, 2015
  14. Happy to see you fixed it and thank you for the tip, noted for possible future update!
     
  15. Hi there,

    I'm getting the following messages:



    189.4.176.169:50763/7656119807......08/F4F | Lilian Rejecting connection - MinimumPlaytime failed to
    load your Rust playtime.

    Fact is: The profile is private. So the plugin cannot read the information.

    I guess there isn't a way to circumvent this BUT, you could add a message telling people that they have to make their steam profile public, something like it:

    "This server only allows Steam Players with Public Profile to enter. Your Profile is set to PRIVATE. Please, change your Steam Account to Public and come back."
     
    Last edited by a moderator: Jul 6, 2015
  16. Hi, thank you for reporting this. As said earlier in the comments I am currently working on a fix for this. I'm still not 100% sure it's caused by private profiles because we tested it with private profiles but I'll add a message asking to put their profile on public just in case.
    Thanks again for reporting and I'll post an updated version soon.

    EDIT: I just confirmed that the error is caused by private profiles. Changed the error message as you suggested.
     
    Last edited by a moderator: Jul 6, 2015
  17. KeyboardCavemen updated Minimum Playtime Checker with a new update entry:

    Fixed issue with private profiles & more!

     
  18. OK, working like a champ now