Repository navigation
Let admins take items out of /ee log snapshots and view a chest before a visit - #64
Open
Akvarez-java wants to merge 2 commits into
Open
Akvarez-java wants to merge 2 commits into
Akvarez-java wants to merge 2 commits into
Conversation
…e a visit - Right-click a log entry to open the chest as it was before that visit (the previous logged snapshot of the same chest). - New permission enhancedechest.admin.log.take (default op): take or drop items out of a snapshot to restore lost items; each one is logged to the console. Without it the snapshot stays a read-only sandbox. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the log has no earlier visit of a chest (first logged visit, or older rows pruned), the before view now reads the chest from the newest scheduled database backup taken before the visit opened, opened read-only. If both exist, the newer of the two is shown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two additions to the
/ee logviewer, aimed at giving lost items back to players:ChestLogStore.loadPreviousSnapshot). Left-click still shows the chest as it was left. If the log has no earlier visit (first logged one, or older rows were pruned), it falls back to the newest scheduled database backup (backup.folder, SQLiteVACUUM INTOfiles) taken before the visit opened, opened read-only (log/BackupLookup). When both exist, the newer one is shown, and the window title says which one it came from. If neither exists, the admin gets a message.enhancedechest.admin.log.take(default op), lets an admin take or drop items out of a snapshot. Without the permission, the snapshot stays the read-only sandbox it is today. Each item that leaves a snapshot is written to the console (<admin> took/dropped <n>x <MATERIAL> from log snapshot of <owner> #<index>), so restores can be audited.Notes
en_USandvi_VN:log.lore-click-before,log.snapshot-title-before,log.snapshot-title-backup,admin.log-snapshot-no-before.log.lore-clicknow reads "Left-click: contents when closed"../gradlew testpasses. I have not tested this on a live server yet.🤖 Generated with Claude Code