I am having an issue with backpacks not clearing after two wipes now. Mod is up to date and enabled true on clear... Any possible fixes for this?
Backpacks not clearing after a wipe
Most commonly, this issue results from not having the plugin loaded when the new save file is generated. For context, when the server first boots after a force wipe, previous save files are not valid, so the server generates a new one, which triggers the Oxide OnNewSave hook. The vast majority of plugins that care about wipes use that hook as the standardized method. Since the July Rust update introduced breaking changes (as usual, since there is no modding API/contract with Facepunch), older versions of Backpacks would no longer compile. When the plugin does not compile, it does not load at all, so it could not detect the hook event. Even after you update the plugin to a compatible version, that hook will not be called again, so backpack contents will not be cleared.
To prevent this, server owners are advised to always ensure the plugin is updated before starting their server after a force wipe. Every force wipe that breaks the plugin, I release the new version at least a few hours early on uMod, and typically a few days early on GitHub for more savvy users. For the July force wipe, I released the update on uMod multiple days before the force wipe, with a detailed and clear warning about this potential issue.
To mitigate backpacks not wiping afterward, I recently introduced the backpack.wipeall command which you can run as a substitute. This enforces your server's configuration and permissions, so it's generally preferred over simply deleting the contents of the data/Backpacks folder which can be intrusive to players who have been granted cross-wipe item persistence.
---
If you had the latest version of Backpacks loaded when new save file was generated, then I am not sure what would cause that. There is no known issue besides the one above.
appreciate the help 👍