Snowballs don't trigger damage event with players anymore?

Discussion in 'Bukkit Discussion' started by orange451, Mar 23, 2012.

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

    orange451

    I used to use an OnDamage event to track whether or not a snowball hit a player. However, this last patch, the onDamage only triggers when a snowball hit a mob, not a player. I need my snowballs to damage players.
    Does anyone have any information?
     
  2. Offline

    Jaker232

    Only you can blame,
    is,

    Bukkit.
     
  3. Offline

    orange451

    That's really annoying.
    Is there any way to contact them (to get them to know about this issue)?

    Anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  4. Offline

    S.L.P.Major

    try the snowballnextdoor plugin
     
  5. Offline

    theguynextdoor

    I can't seem to get player damage working neither. Not using an EntityDamagedByEntityEvent anyway.
     
  6. Offline

    BigBlaster10

    Code:
        @EventHandler(priority = EventPriority.HIGHEST)
        public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
            Entity entity = event.getDamager();
            if (entity instanceof Snowball) {
                event.setDamage(3);
               
            }
        }
    This will work i tested it.
     
  7. Offline

    theguynextdoor

    Yes this was an old bukkit bug and has since been fixed.
     
Thread Status:
Not open for further replies.

Share This Page