misticos
Removes entities if the owner becomes inactive

Supported Games
works with

Auto Purge removes entities created by inactive players after a given timelimit being offline.

Placeholder API

  • autopurge.lastseen - Last seen date.
  • autopurge.inactivefor - Time user has been inactive for.
  • autopurge.next - In what time purge should occur.

Configuration

Default Configuration

{
  "Purge Settings": [
    {
      "Permission": "",
      "Lifetime": "none"
    }
  ],
  "Purge Timer Frequency": 900.0,
  "Entities Per Step": 512,
  "Purge Sleepers": true,
  "Use Logs": true
}

How-To

Permission is a permission. Can be empty to allow for everyone.

Lifetime is time before entities are purged after player has logged in last time in format 1s1m1h1d. Use none to disallow purge for this poermission. If unable to parse lifetime, defaults to none. None is the highest priority, so in case at least one of the guys has it, entity isn't purged.

Purge Timer Frequency is how frequently entities are purged.

Entities Per Step is how many entities are checked every "step" (16 times per second). Lower this value if you experience performance issues (lags).

Purge Sleepers is whether to purge sleepers.

Use Logs is whether to use logs. Format: [Time] Marked SteamID as suitable for purge (Last seen: Date and Time).

How does it work

  1. It iterates through all entities on the server
  2. It checks whether it's a decayable entity
  3. It checks whether one of entity owner or authorized in building privilege players were online in the allowed time limit
  4. Entity is removed

Donate

Click me

MIT License


Copyright (c) 2019 misticos


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.