developers/Including the API

Adding the API to your plugin

This page will show you how to use AccountAPI with your plugin.


Add to Build Path

1. In Eclipse, right click your project folder and go to Build Path - Configure Build Path...

Step 1


2. Click Add External JARs...

Step 2


3. Open the downloaded file
4. Click OK

You can now use AccountAPI for your project.


Require AccountAPI

To prevent runtime exceptions, you may want your plugin to require AccountAPI by adding one of these lines to your plugin.yml


Use depend if you want to load AccountAPI before your plugin and disable your plugin if AccountAPI is not installed:

depend: [AccountAPI]


Use softdepend if you want to load AccountAPI before your plugin but load your plugin even if AccountAPI is not installed:

softdepend: [AccountAPI]

Comments

Posts Quoted:
Reply
Clear All Quotes