Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ArmorEquiptEvent?

Comments in 'Plugin Development' started by Hotshot_9930, Oct 21, 2015.

  1. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Is there an event that is fired when players equipt armour? I've been looking at the events and havent seen any like this; Maybe i missed it.
    The EntityArmorChangeEvent only works when you remove armour so don't suggest that.
  2. BalAnce
    Offline

    BalAnce Active Member

    Joined:
    Mar 10, 2015
    Posts:
    125
    Minecraft User:
    BalAnce
    This Dosnt Work?

    PHP:
    public function ArmorChange(EntityArmorChangeEvent $ev){
            if (
    $ev->getOldItem()->getId() === 0){
                
    //whatever
            
    }
        }
    TheSuperYT1122 likes this.
  3. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    i noticed it dosent work in the new API
  4. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    I figured it must have been a bug. I just wanted to make sure.
    TryoneLegendZzz likes this.

Share This Page

Advertisement