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

RemoveArrow

Discussion in 'Plugin Help' started by Howtodoit, Aug 12, 2020.

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

    RicardoMilos384 Slime

    Messages:
    82
    GitHub:
    ricardomilos384
    E
    PHP:
    public function onHit(ProjectileHitEvent $event){
        if((
    $arrow $event->getEntity()) instanceof Arrow){
            
    $arrow->close();
        }
    }
     
  2. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    you right, i edit this fact for mine :)
     
  3. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    1 - check posts and send post
    2 - i said its not working for most people, idk why its not killing arrows.
    3 - i created a plugin for him, its done this thread is Solved :)
     
  4. Howtodoit

    Howtodoit Spider Jockey

    Messages:
    35
    THANKS YOU
     
  5. Howtodoit

    Howtodoit Spider Jockey

    Messages:
    35
    Error :(
    Code:
    [12:37:26] [Server thread/INFO]: Enabling NoArrow v1.0.0
    [12:37:26] [Server thread/CRITICAL]: ReflectionException: "Class pocketmine\event\entity\ProjectileHitBlockEvent does not exist" (EXCEPTION) in "/src/pocketmine/plugin/PluginManager" at line 766
    [12:37:26] [Server thread/INFO]: Disabling NoArrow v1.0.0
     
    Last edited: Aug 14, 2020
  6. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    what is your sever version? i asked you in the paste but i didnt get anwser
     
    Howtodoit likes this.
  7. Howtodoit

    Howtodoit Spider Jockey

    Messages:
    35
    MCPE 1.1.1 - 1.1.7
     
  8. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    oh my god, its out dated as f :X
     
  9. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    but im wondering, my plugin api is for +3.0.0 and how its enabled on your server to send class undefined? LMAO
     
  10. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    use this.
    PHP:
    /**
    * @param ProjectileHitEvent $event
    */

    public function onShoot(ProjectileHitEvent $event) {
    $arrow $event->getEntity();
    if (
    $arrow instanceof Arrow) {
         
    $arrow->flagForDespawn();
        }
    }
    if its undefined :mad: tell me
     
  11. Howtodoit

    Howtodoit Spider Jockey

    Messages:
    35
    Sorry :(:(
     
  12. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    sorry, your pmmp version is out dated, i cant do some thing, why you dont update your pmmp version?
    also wait to get anwser from other developers, i dont have more idea to do that in out dated version. :(
     
    Howtodoit likes this.
  13. Howtodoit

    Howtodoit Spider Jockey

    Messages:
    35
    No problems. Thanks you for everything.
     
  14. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    no problem
     
    Howtodoit likes this.
  15. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    Locking this as it seems to have gotten out of control. Thanks to everyone who didn't contribute to the toxicity here.
     
    Howtodoit, RicardoMilos384 and mmm545 like this.
Thread Status:
Not open for further replies.
  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.