Files
plugin-hub/plugins/chance-man
ChunkyAtlas 3bc7b0fd52 update chance-man to v2.1.3 (#7864)
* Update chance-man to 2.1.3

Switch to java.nio Files for safer saves and add automatic backups

- Migrated UnlockedItemsManager & RolledItemsManager from old FileReader/FileWriter to java.nio.Files/Path
- Write JSON via a temp file + ATOMIC_MOVE so saves are atomic
- Keep up to 10 rotating backups in a `backups/` folder, automatically pruning older ones
- Cleaned up ChanceManPlugin.startUp(): only register the overlay once (removed duplicate call)

* Update chance-man

Ensure “clean”/“rub” only locked for tracked items

* Update chance-man

harden persistence for rolled & unlocked items

- Automatically create data files on first run to avoid null pointer errors  
- Add `safeMove()` helper for atomic‐move fallback and AccessDeniedException handling  
- Rotate and prune backups, keeping only the latest `MAX_BACKUPS`  
- Streamline load/save: write to a `.tmp` and then swap it into place  
- Fix edge cases: NPEs on login, atomic‐move failures, and backup conflicts during rapid saves
2025-04-26 03:19:31 -04:00

3 lines
105 B
Plaintext

repository=https://github.com/ChunkyAtlas/chance-man.git
commit=6faef6d7e1ad45185610fca5bae946b456946ab3