Posted March 5, 201510 yr 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
March 5, 201510 yr Author Thanks for the reply! If I do that is there any way to access the itemstack that was just removed? I need to alter it to prevent an exploit.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.