Developer API
Add the following to your repositories section:
Add the dependency to your dependencies section:
Add the following to your repositories section:
Add the following to your dependencies section:
Replace CHANGE-THIS to the latest version:
API Usage
Don't forget to add AxParties to your plugin's plugin.yml, like this:
or:
Using the API:
The current API is very simple, you can access all the useful methods in the com.artillexstudios.axparties.api.AxPartiesAPI
class.
AxPartiesAPI#getParties -
Method | Returns | Explanation |
---|---|---|
getParties | Map<String, Party> | Returns an unmodifiable map of all parties (key = party name, value = party object) |
getPartyOf(player) | Optional<\Party> | Returns an optional party, it will be empty if the player doesn't have a party |
getPartyByName(name) | Optional<\Party> | Returns an optional party, it will be empty if the party is not found |
Simple example:
And that's all, if you need anything else, feel free to contact us or make a pull request on github!