-
Notifications
You must be signed in to change notification settings - Fork 0
External API Documentation
Daniel Stephenson edited this page Oct 9, 2021
·
3 revisions
The API is available in the latest version of the plugin, which can be downloaded here.
- Copy the JAR into a folder in your project.
- Add this to your pom.xml in the dependencies section:
<dependency>
<groupId>dansplugins</groupId>
<artifactId>Mailboxes</artifactId>
<version>(version)</version>
<scope>system</scope>
<systemPath>${project.basedir}/(path-to-JAR)/Mailboxes-(version).jar</systemPath>
</dependency>
- Add the JAR as a module in File --> Project Structure --> Modules.
The location of the primary class for the API is "src/main/java/dansplugins/mailboxes/externalapi/MailboxesAPI.java".
When using this API, I have preferred to use an integrator class to check if the API is available and to get the API itself. Here is an example of one such class. Feel free to use this in your own projects.
If you have a suggestion for something that needs to be added to this page, please contact me on Discord. My tag is DanTheTechMan#3438.
