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

Solved Any Help?

Comments in 'Plugin Development' started by TryoneLegendZzz, Aug 12, 2015.

  1. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    ok so i am making a OneInTheQuiver plugin and i am trying too give a player a arrow when they kill a player using a bow but everything i try dosent work heres my code:
    PHP:
    public function onHitByArrow(EntityDamageEvent $event){
        
        if(
    $event->getCause() === EntityDamageEvent::CAUSE_PROJECTILE){
            
    $event->getEntity()->setHealth(0);
         
            }
    }
    any help?
  2. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    nvm solved this :p
  3. amiremad
    Offline

    amiremad Active Member

    Joined:
    Sep 8, 2015
    Posts:
    192
    Minecraft User:
    amir107
    what is this plugin for
    o_O

Share This Page

Advertisement