Error: Player cannot open thr book! Code: public static ItemStack info(){ ItemStack book = new ItemStack(Material.WRITTEN_BOOK); BookMeta meta = (BookMeta) book.getItemMeta(); meta.setAuthor("§5xFlame§6HC§7.PL"); meta.setTitle("§8» §3§lINFORMACJE §8«"); ArrayList<String> pages = new ArrayList<String>(); pages.add("§8» §7Sklep serwera:§3 www.xFlameHC.PL\n" + "§8» §4ROOT: §aTheKubusk3\n" + "§8» §4ROOT: §aFrosty1337\n" + "§8» §4HeadAdmin: §aXoresX\n" + "§8» §1Moderator: §aAcer1337PL"); meta.setPages(pages); book.setItemMeta(meta); return book;
What do you mean by they cannot open it? When you right click the book, does anything happen? UPDATE: I've just tried it and it seems to be working just fine. Are you sure you don't have any errors or any plugins that could be interfering?