return;
}
bm.setPages(pages);
bm.setAuthor(player.getName());
bm.setTitle(plugin.getPluginLang().getString("book-name", "Achievements Book"));
<BUG>bm.setLore(Arrays.asList(ChatColor.translateAlternateColorCodes('&', "&8" + plugin.getPluginLang()
.getString("book-date", "Book created on DATE.").replace("DATE", dateFormat.format(new Date())))));
book.setItemMeta(bm);</BUG>
if (player.getInventory().firstEmpty() != -1) {
player.getInventory().addItem(book);

return;
}
bm.setPages(pages);
bm.setAuthor(player.getName());
bm.setTitle(plugin.getPluginLang().getString("book-name", "Achievements Book"));
bm.setLore(Arrays.asList(ChatColor.translateAlternateColorCodes('&',
"&8" + StringUtils.replaceOnce(plugin.getPluginLang().getString("book-date", "Book created on DATE."),
"DATE", dateFormat.format(new Date())))));
book.setItemMeta(bm);
if (player.getInventory().firstEmpty() != -1) {
player.getInventory().addItem(book);
