Solved Open chest inventory

Discussion in 'Plugin Development' started by Amgis, Dec 26, 2013.

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

    Amgis

    Given:
    Code:
    Player player;
    ItemStack[] items;
    How do I open a chest inventory containing items in player's screen?

    Thanks.
     
  2. Offline

    _Cookie_

    Amgis
    What do you mean by chest inventory?
     
  3. Offline

    Amgis

    _Cookie_

    The inventory that opens whenever a player opens a chest. I believe Bukkit stores it as DoubleChestInventory, but I cannot instantiate DoubleChestInventory.

    Found the solution.

    For those interested: I used Bukkit.createInventory()

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  4. Offline

    NinjaWAffles

    I know that this is marked as solved, but if you're interested, nisovin made a simple resource called Icon Menu. This is useful for lightweight project; however, for other projects, it might be good to write your own code.
     
Thread Status:
Not open for further replies.

Share This Page