Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6643

EntitySpawnEvent and ItemSpawnEvent does not triggering.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • None
    • CraftBukkit version 3094-Spigot-9fb885e-fae895a (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
    • Yes

      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:

      1. break a chest (contains items)
      2. drop manually (with q button)
      3. dropNaturally() method
        # drop() method
      4. 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
      }

            Unassigned Unassigned
            Mr_Obliviate Hamza Coskun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: