1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Cancel armor

Discussion in 'Facepalm' started by LucGamesDE, Jul 2, 2017.

  1. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    Hhg
     
    Last edited: Jul 3, 2017
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    The actual question here is why are you not using PlayerInventory::setArmorContents() instead? And yes, you can cancel it using DataPacketSendEvent.
     
  3. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    I want to show different armors to different players. How can I do it with DataPacketSendEvent? Can u give me an example?
     
  4. Eduardo

    Eduardo Baby Zombie

    Messages:
    100
    GitHub:
    xBeastMode
    On data packet send even check if the event packet is instance of mob armor equipment packet, then just cancel the event like you do with a typical event.
     
  5. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    But if I do this I also cancel the part were the player gets the armor
     
  6. Eduardo

    Eduardo Baby Zombie

    Messages:
    100
    GitHub:
    xBeastMode
    You changed your question, you need to makeup your mind so I can help you.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.