Solved Help accessing a dependency

Discussion in 'Spigot Plugin Development' started by TheNesko, Mar 4, 2020.

  1. Hello, im kinda stuck and trying to figure out how do i download jar libraries needed for my plugin and put them in the plugin sub folder, also the plugin should use code from those jars if that makes sense?
    Basically im trying to do same thing as Luckperms where it download jars and puts them in the libs folder.
     

    Attached Files:

    • sss.jpg
      sss.jpg
      File size:
      114.1 KB
      Views:
      68
    #1 TheNesko, Mar 4, 2020
    Last edited: Mar 4, 2020
  2. Any specific reason you want to do this? Unless you have an actual problem at hand, I'd avoid this in favor of other ways of solving the issue (if there even is one). I wouldn't consider file size to be a problem, even when you have >10 dependencies. I mean you could look at the source for luckperms on how they do it, but you'll notice that it's not a trivial matter.
     
  3. Well the goal was to download external library in the plugin folder and use in the plugin without need to put everything in one big jar and i managed to do it by creating my class that uses reflections and class loader to do that.