NOTE: You would need EnchantmentBook plugin.

This plugin provides a utility function for EnchantmentBook.  Its "get" command will allow a player to get/purchase an unopened EnchantmentBook using his/her EXPs.

When "get" command is executed, randomly crafted unopened EnchantmentBook will be issued.  The player then can click it (right-click) to discover the actual EnchantmentBook.  The level of enchantment, Success rate, Destroy rate is randomly computed to generate the EnchantmentBook.

As a server owner, you can predefine a pool of possible books with a predefined range of enchantment levels, success rates and destroy rates.

You can let your player to use
/ebtool get
command or map that command with predefined enchantment book type (such as Common, Rare, Legendary) to a GUI plugin of your choice.

Video:




Commands:
  • /ebtool help : displays the help menu
  • /ebtool reload : reloads config file.
  • /ebtool get <book_type> [amount] : give an EnchantmentBook item, which is randomly selected and crafted from a list of enchantments list under <book_type>
  • /ebtool issue <player> <tier_name> [random|book_name] [amount]: issues an EBook to <player> without EXP cost."  If you specify the book name, make sure to replace a space (' ') with an underscore ('_').

Permissions:
  • enchantmentbooktool.reload : allows you to use /ebtool reload command
  • enchantmentbooktool.get : allows you to use /ebtool get command

Installation:
First, you need to install EnchantmentBook.jar into the plugins folder. Once you've installed EB, you can put EnchantmentBookTool.jar in the plugins folder.

Configuration:
You can have full customisation in what sort of EnchantmentBooks are randomly generated and what sort of groups you wish to have (such as Common, Rare, Legendary, etc.)

Messages:
  ErrorMsg : "&c[EBTool] : Some error occured."
  NoSuchBookType : "&c[EBTool] : No such book type (%type%) is available."
  NotEnoughExp : "&c[EBTool] : You need at least %exp% to get this type of a\
enchantment book."
  UsedExp : "&a[EBTool] : You've used &e%exp% &aexp to get a book of &e%type\
%&a. You now have %left% exp left."
  PlayerOffline : "&c[EBTool] : Player (&e%player%&c) is offline."
  NoPermission : "&c[EBTool] : You don't have a permission to use this book (&e%type%&c)."
  BookGiven: "&a[EBTool] : You've given a book of &e%type%&a."
  BookOpened: "&a[EBTool] : You've opened a book of &e%type%&a, and got &e%booktitle%."
HelpMessages:
  banner:
    msg: "=== &e[&aEnchantmentBookTool Commands List (%version%)&e] &r==="
  help:
    msg: "&a/ebtool help : displays this help menu."
  reload:
    msg: "&a/ebtool reload : reloads config file."
    permission: "enchantmentbooktool.reload"
  debug:
    msg: "&a/ebtool debug <true|false> : turn on / off the debug mode."
    permission: "enchantmentbooktool.debug"
  get:
    msg: "&a/ebtool get <tier_name> : give an EBook randomly configured and \
selected from a list of enchantments list under <tier_name>."
    permission: "enchantmentbooktool.get"
  issue:
    msg: "&a/ebtool issue <player> <tier_name> [random|book_name]: issue an EBook to <player> without EXP cost."
    permission: "enchantmentbooktool.admin"

# whether players need to use exp to get book or not.
UseEXP: true

# UnOpenedBook's name MUST start with %type%
# UnOpenedBook's lore MUST have at least one line without %type%
UnOpenedBook:
  title: "%type% Enchantmetn Book &r(Right Click)"
  lore:
    - "&7Examine to receive a random"
    - "%type% &7enchantment book."

FireWorkEffect:
  Color:
    - GREEN
    - RED
  Type: STAR
  Power: 0

EnchantmentSets:
  Common:
    Name: "&aCommon"
    Exp: 30
    Books:
      Common_Amor:
        Name: "&aCommon Armour"
        Targets:
          - DiaArmour
        Enchantments:
          Sharpness:
            name: "&6Sharpness"
            mode: +
            min: 1
            max: 3
          Jump:
            min: 2
            max: 5
        Success:
          min: 60
          max: 90
        Destroy:
          min: 2
          max: 10
      Common_Tool:
        Name: "&aCommon Tool"
        Targets:
          - DiaArmour
          - DiaTool
        Enchantments:
          Nightvision:
            name: "&eNightvision"
            min: 1
            max: 3
          Jump:
            mode: +
            min: 2
            max: 5
        Success:
          min: 60
          max: 90
    Destroy:
          min: 2
          max: 10
  Rare:
    Name: "&bRare"
    Exp: 300
    Books:
      Rare_Weapon:
        Name: "&bRare Weapon"
        Targets:
          - DiaWeapon
        Enchantments:
          Guardian:
            min: 1
            max: 3
          Lightning:
            min: 2
            max: 5
        Success:
          min: 50
          max: 80
        Destroy:
          min: 2
          max: 10
      Rare_Tool:
        Name: "&bRare Tool"
        Targets:
          - DiaWeapon
          - DiaTool
        Enchantments:
          FireProtection:
            min: 1
            max: 3
          Jump:
            min: 2
            max: 5
        Success:
          min: 50
          max: 80
        Destroy:
          min: 2
          max: 10


Sample config to use DeluxeMenu to create /eb, /enchanter like GUI:

  sample
  sample