Enchantment id?

Discussion in 'Spigot Plugin Help' started by Bailey Crowe, May 27, 2015.

  1. My plugin StarCache has different kits, well to put an item into a kit you do [item id]%[amount]
    So for one diamond chestplate it's: 311%1
    How can i add an enchantment to that line of code?
    Code (Text):
    - 310%1
    - 311%1
    - 312%1
    - 313%1
    This is my code for diamond armor kit, how can i add prot 4 to the armor?
  2. Hm.. Perhaps you should code your plugin to accept enchantments like essentials?

    - dchestplate protection:4
  3. I've had it use enchants, but this was over a year ago and i completely forgot how i did it....
  4. Yeah i can't get this to work...
  5. Just add support like essentials in your plugin to put protection:4 or something.
  6. Well there's another format that's a lot longer kinda like when bukkit saves someone's inventory? i forgot the format but i think that's what i did?