Event that happens when you equip/unequip armor

Discussion in 'Plugin Development' started by ConflictRealms, Apr 1, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    ConflictRealms

    What would I do to make it send a message when someone equips armor and unequips armor? Cant really be inventoryclick event because the game has other ways to put armor on people.(Dispenser) or (Shift+rightclick armor in hotbar- Might count)
     
  2. Offline

    raGan.

    Listen to everything that can put armor on player.
     
  3. Offline

    LazyLemons

    InventoryClickEvent is the best event to listen to here.
    Or you could set up a repeating task, wouldn't be efficient.
     
  4. Offline

    ConflictRealms

    So inventoryclickevent fixes it so if he puts the armor on manually. And takes it off. What if the armor breaks. And using a repeating task wouldn't work for what I'm doing.(Don't needa get into detail). its current What I'm using
     
  5. Offline

    ConflictRealms

    Anyone? (Been about 24 hours)
     
  6. Offline

    raGan.

    I already told you.
     
  7. Offline

    NemesisMate

    Equipment event is something that I think bukkit should add. To block a player from wearing something is necessary to listen:
    • InventoryClick (put it on classic way)
    • PlayerInteract (righ click with it in hand)
    • BlockDispense (put with dispenser)
    And of all of them with it's own problem (for dispensers is almost impossible to ensure a correct blocking).
     
    Kars and filbert66 like this.
Thread Status:
Not open for further replies.

Share This Page