EntityPickupEvent not working for villager

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • Environment:

      Centos 7

       

    • git-Airplane-"f5fb024" MC: 1.16.5
    • Just Spigot
    • Yes

      EntityPickupItemEvent not forking for Villager

       

      package net.deneme;

      import org.bukkit.Bukkit;
      import org.bukkit.event.EventHandler;
      import org.bukkit.event.Listener;
      import org.bukkit.event.entity.EntityPickupItemEvent;
      import org.bukkit.plugin.java.JavaPlugin;

      import java.util.logging.Level;

      import static java.util.logging.Level.INFO;

      public class main extends JavaPlugin implements Listener {
      @EventHandler
      public void onPickupItem(EntityPickupItemEvent event)

      { System.out.println(event.getEntityType().name()); }

      @Override
      public void onEnable()

      { Bukkit.getPluginManager().registerEvents(this,this); getLogger().log(Level.INFO, "Pl açıldı abisi??"); }

      }

       

      tried this and it doesnt output anything to console when  villager pickups food from ground.

            Assignee:
            Unassigned
            Reporter:
            EMIR APAYDIN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: