if i wanted to call a method from another plugin...

Discussion in 'Plugin Development' started by lrdemolition, Aug 30, 2014.

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

    lrdemolition

    if i wanted to call a method from another plugin how would I.
    also i am not calling the method from my plugins main class.
    i already imported the other plugin into my project.
    thanks

    also in your answer please show me an example of the code used

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  2. Offline

    ZanderMan9

    So you have a statement like this in the class you wish to use the plugin in?
    import Plugin.Stuff; or import Plugin.*;

    That should let you start calling its methods. Just use Plugin.Package.Method();
     
  3. Offline

    PluginMaker

    lrdemolition
    its only been 45 minutes and you already bump?
    anyway, you would have to import the plugin just like you import bukkit into your project, and then find your way of using the method. It's realy not that hard.
     
Thread Status:
Not open for further replies.

Share This Page