/unclear after /clear
Is your feature request related to a problem? Please describe. /clear by accident or the wrong target is a problem.
Describe the solution you'd like Give an undo function like /restore or /unclear.
Describe alternatives you've considered Give a warning of what will happen and retype the command a second time to confirm.
Not completely against it, but there are bigger fish to fry and so not likely going to make it soon if I'm left to do it. If someone wants to PR this, I can work with them.
I can take on this task if you'd like, just let me know how you'd want it structured.
I think the main thing to think about is just how to temporarily store a cleared inventory. A handler containing a cache that holds UUID to List<ItemStack> will probably suffice, or some way to hold where things were (that'll be the hardest part), ensuring that they expire quickly.
If you're happy to give it a go, please do. I'm somewhat busy at the moment but I can help with pointers on PRs at the very least.
Hey!
I'm going to give this a little bump to see if there are any new faces who could bring this wholesome idea into reality :heart:
+1 for /unclear