| Name | player equips|unequips armor|helmet|chestplate|leggings|boots |
| Event Lines | player equips|unequips armor|helmet|chestplate|leggings|boots
player equips|unequips <item> |
| Triggers | when a player (un)equips armor. |
| Generated Examples | on player unequips helmet:
after player unequips bone: after player equips armor: on player unequips mangrove_door: |
| Has Player | Always. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Contexts | <context.new_item> returns the ItemTag that is now in the slot.
<context.old_item> returns the ItemTag that used to be in the slot.
<context.slot> returns the name of the slot.
|
| Group | Paper |
| Requires | Paper |
| Warning(s) | This event is not reliable, and may miss some types of equipment changes or fire when equipment hasn't actually changed. |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/events/PlayerEquipsArmorScriptEvent.java#L22 |