Using a plugin in another plugin?

Discussion in 'Plugin Development' started by Oo-Zakk-oO, Apr 19, 2014.

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

    Oo-Zakk-oO

    So lets say i have a tokens plugin i made. And this tokens plugin has a method : public void addtokens(Player p, int amount){} And then i have another plugin like a minigame and when a player wins i want to run the method from the other plugin the "addtokens" method. How can i connect them together and use the method?
     
  2. Add your plugin like craftbukkit.
     
  3. Offline

    Oo-Zakk-oO

  4. I#m not sure but add the Token Plugin to your buildpath in Eclipse or whatever you use then write your code and in the plugin.yml you set the token plugin as a dependency
     
Thread Status:
Not open for further replies.

Share This Page