diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandGiverandombook.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandGiverandombook.java index eaeb9316..048ef424 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandGiverandombook.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/commands/CommandGiverandombook.java @@ -53,6 +53,8 @@ public class CommandGiverandombook extends AbstractCommand { meta.addStoredEnchant(enchantment, level, true); itemStack.setItemMeta(meta); + player.getInventory().addItem(itemStack); + String message = this.getPlugin().getLangYml().getMessage("gave-random-book"); message = message.replace("%enchantment%", EnchantmentCache.getEntry(enchantment).getName() + " " + NumberUtils.toNumeral(level) + "§r"); sender.sendMessage(message);