I want to listen ItemSpawnEvent but the event never triggers. Also i tried EntitySpawnEvent but i couldn't trigger it too. Event above, triggering successfully. i tried 4 different spigot fork and 2 different spigot versions. i tried different priorities. no one solved this.
My tries:
- break a chest (contains items)
- drop manually (with q button)
- dropNaturally() method
# drop() method - kill a mob
@EventHandler public void onPlayerDropEvent(PlayerDropItemEvent e) { Bukkit.broadcastMessage("PlayerDropItemEvent"); //works } @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onItemSpawnEvent(ItemSpawnEvent e) { System.out.println("tttt"); Bukkit.broadcastMessage("1"); //not works }