[Feature Request] Server-side component that enables admins to view and restore player inventories
Southpaw1496 opened this issue ยท 2 comments
Minimum Functionality
Every time a player dies, their inventory is backed up to a database (even if they don't have the client mod). This backup can be viewed by administrators (and admins can also copy individual items from the backup), and they can restore the player's inventory at the click of a button (this would probably overwrite the player's inventory). Their experience (xp) would also be able to be restored.
Extra Features
- Force-backups (admins can force a backup via a command)
- Ability to save to a MySQL database
- LuckPerms etc. support
- Ability to configure non-death events to saves (eg. Dimension change, joins, leaves)
- Ability to limit the amount of backups per player (oldest backups are overwritten)
- SQL support is probably not happening for a while if ever as it would require significant additions to the backend.
- What do you mean by permissions support? Like what would it be used for?
- I don't think force-backups really make sense in DeathLog. That sounds more like something for a general admin tools mod and should ideally just backup the entire playerdata
Re: SQL: Completely understandable, just nice to have
Re: Permissions: LuckPerms fabric (and some other mods) have developed a Spigot-style permissions system for more granular control than the "all or nothing" approach of ops. So, for example, you could have deathlogger.view
and people with those permissions would only be able to view backups. deathlog.restore
gives them the ability to restore backups, etc. The main use of such a feature (even though enabling specific functionality can be useful to some) is to make a Junior administrator group who you can grant the deathlog.*
permission, so they can still use all the DeathLog functionality without giving them full op access.
Re: Force-backups: They were just something useful I found in the Spigot plugin I used to use, it was handy for backing up your survival inventory and then clearing it to do admin work. But on reflection I agree wouldn't really make sense for a plugin called "DeathLog"