Spigot AntiArrowPickup 1.02 / Spigot 1.9

Instantly remove arrows on ground

  1. Zeryther

    Supporter

    Zeryther submitted a new resource:

    AntiArrowPickup - Instantly remove arrows on ground

    Read more about this resource...
     
  2. Zeryther

    Supporter

  3. Heey,
    Mind putting this on Github? ;3
     
  4. Zeryther

    Supporter

    Actually I lost the code when my computer broke. But it wasn't really a big plugin, so I think I can rewrite it an put it on GitHub, yes :)
     
    • Friendly Friendly x 1
  5. Zeryther

    Supporter

    • Winner Winner x 1
  6. Zeryther

    Supporter

  7. Code (Java):
        @EventHandler
        public void onProjectileHit(ProjectileHitEvent e) {
            if (e.getEntity() instanceof Arrow) {
                e.getEntity().remove();
            }
        }
    This simply doesn't work
    My arrows are still being stuck in the ground, I can still pick them up
     
  8. Zeryther

    Supporter

    That's odd. Any console errors or such?
     
  9. Zeryther

    Supporter

  10. Not at all
     
  11. Zeryther

    Supporter

    Do you maybe have another plugin that modifies projectile behaviour? On my server, everything works fine.
     
  12. I've fixed it, sorry
    Was a mistake on my side

    It's not smart to upload your plugin to a plugin's folder, right? ;P
     
    • Agree Agree x 1
  13. Zeryther

    Supporter

    • Creative Creative x 1