Hi Guys, I got an problem with my plugin! I want it to make that when you have an sign and you right click it you will see an gui with an diamond block. That works! Code: Code:java @EventHandler public void onInteract(PlayerInteractEvent event){ final Player p = event.getPlayer(); if(p.hasPermission("class.gui")){ Block block = event.getClickedBlock(); switch(block.getType()) { case SIGN_POST: case WALL_SIGN: case SIGN: if(((Sign) block.getState()).getLine(0).equalsIgnoreCase("[kit]")){ Inventory inv = Bukkit.getServer().createInventory(p, 54, "Classes"); ItemStack zero_is = new ItemStack(Material.DIAMOND_BLOCK); ItemMeta zero_im = zero_is.getItemMeta(); zero_im.setDisplayName(ChatColor.GREEN + "Fighter" + ChatColor.WHITE + " - " + ChatColor.RED + "$100"); zero_is.setItemMeta(zero_im); inv.setItem(0, zero_is); p.openInventory(inv); } break; default: break; } } } But than I want it to make that when you click the diamond block you get items! But my code doesnt work! My code: Code:java @EventHandler public void inventoryclick(InventoryClickEvent e){ if (e.getInventory().getName().equalsIgnoreCase("Classes")){ if (e.getRawSlot() < 54 && e.getRawSlot() > -1){ ItemStack cursor = e.getCursor(); ItemStack itemclicked = e.getCurrentItem(); Player p = (Player) e.getWhoClicked(); e.setCancelled(true); if (cursor.getType() == Material.DIAMOND_BLOCK){ p.getInventory().addItem(new ItemStack(Material.DIAMOND_SWORD, 1)); p.getInventory().addItem(new ItemStack(Material.PORK, 16)); p.getInventory().addItem(new ItemStack(Material.ARROW, 1)); ItemStack bow = new ItemStack(Material.BOW, 1); bow.addEnchantment(Enchantment.ARROW_INFINITE,1); p.getInventory().addItem(bow); p.sendMessage(ChatColor.RED + "[C-Kits]" + ChatColor.WHITE + "You both the " + ChatColor.YELLOW + "Fighter" + ChatColor.WHITE + " class!"); p.closeInventory(); } } } } I hope someone can help me out! Bye!