About Auto Purge
xAutoPurge
- Automatically purges all entities owned by players which are inactive for X days.
- xAutoPurge can retroactively detect and track players who haven’t connected to your server (Even before plugin was installed).
- Config:
- PurgeOnlyToolCupboards - Only tool cupboards owned by inactive players are purged.
- InactiveDays - Defines when a players gets purged if not online for X days. (Default: 7 days)
- PurgeCheckIntervalSeconds - Defines how often it should be checked for inactive players. (Default: 1 hour)
- AnnouncePurge - Players can now be notified: "Optimizing server performance, brief lag may occur."
- LogToConsole - Defines if purging activities are getting logged to the console. (Default: true)
- ExcludedSteamIDs - Defines an exception list for specific SteamIDs, entered SteamIDs doesn't get purged. (Default: none)
- ResetDataOnWipe - Resets data on wipe automatically, so it doesn't happen that someone gets purged after wipe. (Default: true)
- SkipSharedBuildingPurge - Skip purging shared buildings/deployables where the inactive player owns part of the base, but another player also owns building blocks in the same building. It does not check the Rust team system. It checks ownership on building blocks by SteamID > Separate Buildings/Deployables will still be purged for the inactive player.
- DetailedPurgeLog - The plugin will create a detailed log file for each purge. It can include things like targeted SteamIDs, last seen times, purged entity counts, protected/shared buildings, and what was skipped.
Default Config
{ "PurgeOnlyToolCupboards": false, "InactiveDays": 7, "PurgeCheckIntervalSeconds": 3600, "AnnouncePurge": false, "LogToConsole": true, "ExcludedSteamIDs": [], "ResetDataOnWipe": true, "SkipSharedBuildingPurge": true, "DetailedPurgeLog": true }
Console Commands
purge.run [Triggers the purging immediately with its configurations]
purge.player PLAYERNAME/STEAMID [Purges a specific player immediately (ignoring configuration) - Example usage: purge.player xNullPointer95]
purge.retroactively - Scans the server database and detects all SteamIDs that have ever connected to your server, adds them to the xAutoPurge data file (if not already there), and sets their lastSeen value to the current date and time, so on next purge schedule they are deleted (depending on config 'InactiveDays').
Behaviour Matrix between "PurgeOnlyToolCupboards" & "SkipSharedBuildingPurge" Config
