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

Solved Bugs with arrow

Comments in 'Plugin Development' started by KingDeadKnight, Oct 18, 2015.

  1. KingDeadKnight
    Offline

    KingDeadKnight New Member

    Joined:
    Oct 18, 2015
    Posts:
    33
    Minecraft User:
    KingDeadKnight
    Hello, today i made a plugin for a BowWars but there is one problem. When a player shot and the arrow come to a wall of the arena. A player might recover the arrow but with a bug of 0.12.0 (pocketmine or mcpe?) his client crashed and he lose the BowWar's game. How can I fix it?
    Or maybe arrow become snow or others when it touch a block?
    Thx.
  2. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    No way to fix, wait for @shoghicp to fix it,
    and it actually crashes when you pick up the arrow.
  3. KingDeadKnight
    Offline

    KingDeadKnight New Member

    Joined:
    Oct 18, 2015
    Posts:
    33
    Minecraft User:
    KingDeadKnight
    So no way to transform the arrow too?
  4. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    just cancelled InventoryPickUpArrowEvent
  5. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Maybe you could clear arrows when they hit something, to stop players from picking them up.
    PHP:
    public function onProjectileHit(ProjectileHitEvent $event) {
        
    $entity $event->getEntity();
        
        if(
    $entity instanceof pocketmine\entity\Arrow) {
              
    $entity->close();
      }
    }
  6. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    You could try this. ( by @CaptainKenji17 )
    http://forums.pocketmine.net/threads/arrow-crashing.12257/#post-123493
  7. Radguy23
    Offline

    Radguy23 Active Member

    Joined:
    Aug 14, 2015
    Posts:
    74
    Minecraft User:
    TheAwesomeCrew27
  8. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    Its called a plugin. :D
    Radguy23 likes this.
  9. KingDeadKnight
    Offline

    KingDeadKnight New Member

    Joined:
    Oct 18, 2015
    Posts:
    33
    Minecraft User:
    KingDeadKnight
    Thx, it's work
  10. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    No problem. Don't forget to thank to the author too. ;)

Share This Page

Advertisement