Auto Purge removes entities created by inactive players after a given timelimit being offline.
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).
Placeholder API
- autopurge.lastseen - Last seen date.
- autopurge.inactivefor - Time user has been inactive for.
- autopurge.next - In what time purge should occur.
Configuration
The settings and options can be configured in the AutoPurge file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.Default Configuration
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
- It iterates through all entities on the server
- It checks whether it's a decayable entity
- It checks whether one of entity owner or authorized in building privilege players were online in the allowed time limit
- Entity is removed