Solved Opening Double Chest

Discussion in 'Plugin Development' started by JungleSociety, Feb 9, 2015.

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

    JungleSociety

    Hello, I'm having some trouble opening a double chest using the following code:

    Code:
    public void openChest(Player p){
         Chest chest = (Chest) loc.getBlock().getState();
         Inventory inv = chest.getBlockInventory();
         return inv;
    }
    
    player.openInventory(openChest);
    So everything works fine without any errors or anything, however my problem is that it opens a single chest inventory where the chest is located. I need it to open the double chest, if its a double chest, with all the items in the same order. Any help is appreciated,
    Thanks
     
  2. Offline

    Skionz

  3. Offline

    JungleSociety

Thread Status:
Not open for further replies.

Share This Page