I am trying to figure out how to detect when a player removes armor, even if this was done because the player died.
I need to detect when any armor is removed, so this is not something I could code into a particular item.
Is there any kind of event I could listen for that would give me this information? Ideally I would need access to both the new and old itemstacks involved.
For death I can trap it via the event for that, but I am not sure how to tell if the player manually removes armor.
Any advice would be appreciated.
Ultimately what I want to do is add a type of buff to the player that temporarily adds an enchantment to whatever armor they are wearing, and removes the enchantment when the armor is removed.
Morden