Save and restore player inventory before/after duelSuggestion
Please, save the whole players inventory right before duel is about to start and then restore after it ends. Why player should be naked? This ruins all the fun. Players can just queue and do their business while they are waiting their turn, but with current system, players have to be naked so it limits them much. Let me know, if you need help implementing this.
this is more complicated than it seems. many things can go wrong which can cause this type of functionality to not work properly and they must all be accounted for. i've already done this once and don't want to go through the hassle of doing it again :/
Well, at this moment you just don't save nothing, it's not a better solution in any means. I guess this system don't have to be ideal, just cover most cases will be good. I have a private plugin doing this pretty nice, not much coding there. If you want I can help to implement this part. This will be a huge improvement, I'm sure many people will be very thankful.
But of course you are owner, so it's up to you to decide.
I'm not trying to push, just offered help
I'm down to add it. I've seen your example and it looks fine.

with the exception of the player losing connection (disconnecting) while spectating without the Oxide hook being called, therefore they will lose their items. this was a bug when I ran a server and happened when they lost internet connection, or crashed. to be safe, it should also try to restore their saved items when they respawn at a bag
Do you need some help with this one?
no plans to add this just yet. it'll take more care to implement properly. i crashed earlier and the OnPlayerDisconnected hook was not called. players would lose their items to this. so it must restore their items when they reconnect. and if they died while offline then it just creates complications of WHEN to restore the items. restore them at the wrong time and you'll have a ticket to answer. give them the option to restore it when they want, and they'll just find a way to exploit that. just not worth it right now imo. already been down this road, but open to suggestions
My suggestion is disconnect = duel lose, so you just restore the inventory and teleport the sleeping body to its coordinates where you take it from and that's it. IMO it's fair and easy.
About crash - you can add a check like player.IsConnected and again, if it's false = duel lose
thanks. I'll think about it
Maybe you want some help with this one? I guess I can do this, if you will merge the commit.
I will do it if I decide to add it. thanks