EssentialsX

EssentialsX

2M Downloads

Clearinventory Confirm Improvement Request

CourtneySechrist opened this issue ยท 2 comments

commented

Currently, with /clearinventoryconfirmtoggle on, the user will normally do /ci once, have the confirmation message, then type the command again to clear an inventory. Something our server has noticed is that if the user logs out before doing the confirmation, the 'confirm-clear' of the userdata will still be true when the user logs back on, so the next time they do /ci, it will clear without confirmation. Is this something that could be improved upon?

commented

The confirm-clear probably shouldn't be persisted across relogs to avoid this.

commented

I created a PR here. I made the confirmation condition set to false on login.