Solved Can I do this?

Discussion in 'Plugin Development' started by __Sour, Feb 10, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    __Sour

    Okay so in the past, if I wanted to use some methods from one plugin that I had made into my other plugins, I would just add that plugin to the build path of that plugin and call the methods, and when I would start the server, if the server didn't have both of those plugins it would call errors. Is there a way the use methods from other plugins, in plugins, without have both plugins on the server?
     
  2. Offline

    Gater12

    @__Sour
    No. If it's not there where would Java look for the method?
     
  3. Offline

    __Sour

    @Gater12 Isn't this is what maven is used for something? Never used it.
     
  4. Offline

    mythbusterma

    @__Sour

    You would have to include the jarfile of the other plugin inside your plugin. That is not allowed on Bukkit, and frankly a terrible idea anyway. What method do you so desperately need that you can't implement yourself?
     
  5. Offline

    __Sour

    @mythbusterma No method really, in the past I have included the jar file into other plugins, because I had a command where a player get some items, and my other plugin would let players open other players inventories, and I had it so if the player that the command sender was trying to open their inventory too, and the player had those items, it wouldn't let them open their inventory. Not really needing any methods, I was just wondering if I could do it differently.
     
  6. Offline

    1Rogue

    Your idea has a foundation but the implementation is messy -- rather than have numerous plugins extending each other; have a single, central plugin that provides a library of code for all your other plugins.

    I'm working on something similar (soon to be publicly released): https://github.com/CodeLanx/CodelanxLib
     
Thread Status:
Not open for further replies.

Share This Page