What are Container manipulation Player events

Discussion in 'Plugin Development' started by UltraMC, Jan 27, 2014.

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

    UltraMC

    Are there events for 'Container' group?

    I want to listen Player item place/take/move events on Chest/Trapped chest/Enderchest/Furance/Hopper/Beacon/any other thing that you can put/take items to.

    If not than is what are the most general Events for that?
    Like chestsEvent, HopperEvent, FuranceEvent (and so on)
     
  2. Offline

    Garris0n

    InventoryClickEvent
     
    UltraMC likes this.
  3. Offline

    UltraMC

    Great, that's what I wanted!

    Now - if I cancel that Event, how to close Inventory?
     
  4. Offline

    rangersmash

    e.getInventory().closeInventory()?
    Or possibly e.closeInventory()?
     
  5. Offline

    ZeusAllMighty11

    rangersmash

    p.closeInventory() or get all the viewers of the inventory and close it
     
    UltraMC likes this.
  6. Offline

    rangersmash

Thread Status:
Not open for further replies.

Share This Page