I am trying to create a custom Anvil GUI for user input but when i call setItem(0, itemstack) it doesnt apear in the anvil gui.
Inventory tmpinv = Bukkit.getServer().createInventory(usedBy, InventoryType.ANVIL, ChatColor.GREEN + "Enter Reason"); //Switches old inventory with new PlayerManagerGuiHandler.getHandler().updateInventory(inventory, tmpinv); inventory = tmpinv; inventory.setItem(0, PlayerManagerGuiHandler.createGuiItem(Material.NAME_TAG, "Reason", "Enter your custom reason")); usedBy.openInventory(inventory); usedBy.updateInventory();