Detect player opening his inventory?

Discussion in 'Plugin Development' started by Kepler_, Mar 26, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Kepler_

    I can't find an event that triggers when a player opens his inventory (with the e key). I tried the InventoryOpenEvent, but that's only triggered when a player opens a block inventory like a crafting table or a chest. I also tried the PlayerInventoryEvent, but that's deprecated.

    How can i detect when a player opens his inventory? Thanks!
     
  2. Offline

    xXMaTTHDXx

    I'm not quite sure it will work but you could try the InventoryClickEvent, sorry I can't be of more assistance on vacation
     
  3. Offline

    skipperguy12

    Ignore the deprecation? Just because it's deprecated doesn't mean gone forever ;p
     
  4. Offline

    Rprrr

    skipperguy12
    Doesn't work for a player opening his own inventory. That's handled client side, and it can't be detected.
     
  5. Offline

    Kepler_

    A member of the bukkit staff told me that the client doesn't tell the server when a player opens his inventory. I might be able to use the inventory click event instead.

    Thanks for the help!
     
Thread Status:
Not open for further replies.

Share This Page