InventoryEvent does not fire when player closes their own event.

XMLWordPrintable

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

      Not sure when this started - but certaitly in version of spigot above and most recent 1.8.3 build the InventoryCloseEvent does not fire when closing own inventory.

      Attached plugin demonstrates.

      Here's the source

      Main.java
      package me.sablednah.legendquest;
      
      import org.bukkit.event.EventHandler;
      import org.bukkit.event.Listener;
      import org.bukkit.event.inventory.InventoryCloseEvent;
      import org.bukkit.plugin.java.JavaPlugin;
      
      public class Main extends JavaPlugin implements Listener {
      
      	@Override
      	public void onDisable() {
      		System.out.print("Disabling test plugin");
      	}
      
      	@Override
      	public void onEnable() {
      		System.out.print("Enabling test plugin");
      		getServer().getPluginManager().registerEvents(this, this);
      	}
      
      	@EventHandler
      	public void onInventoryCloseEvent(InventoryCloseEvent event) {
      		System.out.print("Inventory has been closed");
      	}
      	
      }

      "Inventory has been closed" appears in console when closing a chest, but not closing own inventory,

            Assignee:
            md_5
            Reporter:
            Darren Douglas
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: