-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Is your feature request related to a problem?
Yes. When investigating logs or performing rollbacks, admins often need to manually rollback or inspect specific items or blocks recorded by Ledger. Currently, clicking on coordinates in the log output teleports players (if they have permission), but clicking on the item/block names does nothing.
On modded servers, many items and blocks contain complex NBT data that cannot be realistically reconstructed using vanilla /give commands. For example, custom modded item, or containers with stored data may have dozens of attributes. When rollback fails to restore certain items, admins have no convenient way to respawn these items with their original NBT intact.
Describe the solution you'd like.
When viewing /ledger search results in chat, clicking on an item or block entry should trigger one of the following actions:
- Direct spawn: Instantly give the clicked item (with full NBT data) to the admin’s inventory, assuming they have the appropriate permissions (e.g.,
ledger.give). - Command prefill: Alternatively, clicking the item pre-fills the chat bar with a command such as:
The admin can then confirm or modify the command before executing it.
/ledger give @p some_mod:some_item{NBT_data_here}
This would mirror the existing functionality for teleporting by coordinates.
Describe alternatives you've considered.
- Manual
/givecommands: Not practical for modded items due to excessive or unknown NBT data. For example, I was not able to figure out how to spawn a Cobblemon Academy Card, because there is no documentation on the NBT structure of that modded item. - NBT editors or external tools: These are cumbersome, slow, and often inaccessible in live moderation contexts.
- Rollback commands: While rollbacks usually restore lost items, they do often fail for certain cases (e.g., dropped items). In those cases, admins are left without an easy recovery method.
Agreements
- I have searched for and ensured there isn't already an open issue regarding this.
- I have ensured the feature I'm requesting isn't already in the latest supported mod version.
Other
This feature would be a major QoL improvement for admins. Ledger already provides amazing logging; extending its chat interactivity to include item/block spawning or command prefilling would make it the definitive administrative tool for item recovery and inspection.
In practice, I have repeatedly encountered situations where I needed to spawn a specific modded item/block from the logs, and I had to spend significant time trying to recreate modded item manually. Having the ability to click an item/block in the log and instantly obtain it (or its /ledger give command) would save a huge amount of time and frustration, and it would fit naturally within Ledger's chat log interactiveness design.