Solved Custom Gui

Discussion in 'Plugin Development' started by CraftingRealm, Sep 2, 2013.

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

    CraftingRealm

    I need to be able to show like an "inventory" to a player as if they opened a chest and give it a custom name and add itemstacks to it. Can anyone help me?
     
  2. Offline

    JPG2000

    CraftingRealm
    For creating the inventory:
    Inventory CustomInv = bukkit.createInventory(null, 9, ChatColor.RED + "My custom Inventory");

    The 9 is the sots. Has to be a multiple of 9.

    For the ItemStacks:
    ItemStack IceCream = new ItemStack(Material.SUGAR, 1);

    For setting the ItemStacks to the inv:
    MyCustomInv.setItem(0, IceCream);
     
  3. Offline

    CraftingRealm

  4. Offline

    JPG2000

Thread Status:
Not open for further replies.

Share This Page