AutoPurge

Moved

Total Downloads: 5,820 - First Release: Dec 27, 2015 - Last Update: Sep 18, 2017

5/5, 34 likes
  1. I'm happy to upload any logs or files necessary. But Yeh I'm not making it up. It's been an issue with both plugins following every update. I even got our owner to stop the 24 hour server restarts so at least it had some time to work.
     
  2. I consider such a case for complete excluded that a running StreamWriter could overwrite another write process running ;) Otherwise your complete based Operating System would end in a absolute chaos :p
    And using not "UnLoad" would mean so save the keyvalues on every change, to prevent dataloss on plugin unloading, for example in cases of plugin updates.
    I'm using this "UnLoad" in many plugins with direct user data, some with more, some with less data to save/load, and for none of them was reported missing user data of any kind.
     
  3. Calytic

    Calytic Community Admin Community Mod

    Like I said, the save process is likely being completed before the reload is occurring. However, as your datafile gets larger or you have more data-files, this becomes a serious issue. I have dealt with it in multiple plugins and had many reports of it, just a heads up.
     
  4. Ok, so I finally figured out it was this plugin that was restarting my server every 12 hours, after setting the check from every 24 hours, to every 48 hours, I finally, so far, have 14 hours uptime for the first time in weeks.
     
  5. Surely not, it has no restart automatic :p
     
  6. I know it doesn't I just think it was causing my server to spaz, as it's the only thing I've changed and I'm now at 14 hours uptime which I honestly havnt had for weeks
     
  7. i got everything except the timerjob. what is that for exactly?
     
  8. it a timer to check for inactives. I have mine set to 3 hours, or 5400 seconds.
     
  9. To run the purge automatically
     
  10. Hello Community,
    Hello FYI!

    Two questions I would have to AutoPurge 1.4.4. I have read that it is possible to create a group that is not affected by AutoPurge.

    Code:
    {
      "Exclution": {
        "excludeGroupModerator": true,
        "excludeGroupOwner": true,
        "excludePermission": "autopurge.exclude"
      },
      "Generic": {
        "killSleepers": false,
        "logPurgeToFile": true,
        "purgeOnStart": false,
        "removeRecordAfterDays": 30,
        "removeRecordAfterPurge": true,
        "testMode": false,
        "useClansIO": false,
        "useFriendsApi": true
      },
      "Messaging": {
        "showMessages": true,
        "showMessagesAdminOnly": false
      },
      "Timing": {
        "inactiveAfter": 864000,
        "timerEnabled": true,
        "timerJob": 43200
      }
    }
    ^^ My Config

    Must this group look like this?

    "excludeGroup+Groupname": true, without + or just "groupname": true, ???

    Please excuse my bad english

    best regards
    Amity
     
  11. You need to assign/grant the given permission "autopurge.exclude" to any group or a direct any player.
    You can also rename the part "exclude" of the permission to anything you want in the config,
    and assign/grant then this new permission to any group or player.
     
  12. ty i try!

    you're the best
     
  13. I tried helping another server get this added, set it with TimedExecute to 10 minutes before each restart, the time came and went and no Purge message appeared in chat. Also log just has the "nothing to remove" from 3 days ago.

    I don't have console access to check for errors either.

    Here's my config:

    Code:
    {
      "Exclution": {
        "excludeGroupModerator": true,
        "excludeGroupOwner": true,
        "excludePermission": "autopurge.exclude"
      },
      "Generic": {
        "killSleepers": false,
        "logPurgeToFile": true,
        "purgeOnStart": false,
        "removeRecordAfterDays": 30,
        "removeRecordAfterPurge": true,
        "testMode": false,
        "useClansIO": true,
        "useFriendsApi": false
      },
      "Messaging": {
        "showMessages": true,
        "showMessagesAdminOnly": false
      },
      "Timing": {
        "inactiveAfter": 172800,
        "timerEnabled": false,
        "timerJob": 21600
      }
    }
    TimedExecute: (Restarts worked fine, so it doesnt seem to be issue in this plugin)

    Code:
    {
      "EnabledRealTime-Timer": true,
      "EnableTimerOnce": false,
      "EnableTimerRepeat": false,
      "RealTime-Timer": {
        "23:50:00": "autopurge.run",
        "23:30:00": "say AUTOMATIC RESTART IN 30 MINUTES!",
        "23:40:00": "say AUTOMATIC RESTART IN 20 MINUTES!",
        "23:50:00": "say AUTOMATIC RESTART IN 10 MINUTES!",
        "23:55:00": "say AUTOMATIC RESTART IN 5 MINUTES!",
            "23:58:00": "server.save",
        "23:59:00": "restart 60",
        "05:50:00": "autopurge.run",
        "05:30:00": "say AUTOMATIC RESTART IN 30 MINUTES!",
        "05:40:00": "say AUTOMATIC RESTART IN 20 MINUTES!",
        "05:50:00": "say AUTOMATIC RESTART IN 10 MINUTES!",
        "05:55:00": "say AUTOMATIC RESTART IN 5 MINUTES!",
            "05:58:00": "server.save",
        "05:59:00": "restart 60",
        "11:50:00": "autopurge.run",
        "11:30:00": "say AUTOMATIC RESTART IN 30 MINUTES!",
        "11:40:00": "say AUTOMATIC RESTART IN 20 MINUTES!",
        "11:50:00": "say AUTOMATIC RESTART IN 10 MINUTES!",
        "11:55:00": "say AUTOMATIC RESTART IN 5 MINUTES!",
            "11:58:00": "server.save",
        "11:59:00": "restart 60",
        "17:50:00": "autopurge.run",
        "17:30:00": "say AUTOMATIC RESTART IN 30 MINUTES!",
        "17:40:00": "say AUTOMATIC RESTART IN 20 MINUTES!",
        "17:50:00": "say AUTOMATIC RESTART IN 10 MINUTES!",
        "17:55:00": "say AUTOMATIC RESTART IN 5 MINUTES!",
            "17:58:00": "server.save",
        "17:59:00": "restart 60",
        "08:00:00": "callheli",
        "20:00:00": "callheli"
      },
      "TimerOnce": {
            "reset.oncetimer": 10,
        "weather.fog 0": 350,
            "weather.rain 0": 360
      },
      "TimerRepeat": {
        "callheli": 5400
      }
    }
     
  14. Why use TimedExecute when it has a built in timer
     
  15. Built in timer starts at server start, if you server restarts every 6 or 8 hours, but purge is set for 12, it'll never purge, as its timer will reset after the restart.
     
  16. Still though if its gonna run at server start why bother having it run 10mins before server start

    And you're saying autopurge.run doesn't run?
     
  17. yeah it doesnt seem to be doing anything at the specified time
     
  18. Fujikura updated Auto Purge with a new update entry:

    1.5.0

     
  19. I need the plugin because my server is crashing for a lot of entities on these. The plugin will start auto or i need to do something? i want to delete all entities and kill sleepers for some people than have not connected passed 48hours. Ty
     
  20. Default inactivity is set at two days. This will not be run on those over the time, when they have friends online and do have an "active friendship" or active clan members., when you have these options enabled