-
Bug
-
Resolution: Invalid
-
Major
-
None
-
None
If a player opens his own inventory, nothing will happen.
Opening other inventories (tested with a chest and furnace) work fine.
Example code (same as in attachment):
public class Main extends JavaPlugin implements Listener { public void onEnable() { Bukkit.getPluginManager().registerEvents(this, this); } public void onDisable() { } @EventHandler public void inventoryOpen(InventoryOpenEvent e) { e.getPlayer().sendMessage("You opened (name): " + e.getInventory().getName()); e.getPlayer().sendMessage("You opened (title): " + e.getInventory().getName()); e.getPlayer().sendMessage("You opened (type): " + e.getInventory().getType().toString()); } }