Developer API
The plugin offers a complete developer Spigot API, which allows other plugins on the server to manage friends, parties, settings and much more.
To use the API, simply add the 'FriendSystem-Spigot-API.jar' to your project.
You also need to put the FriendSystem-Spigot-API.jar in your plugins folder of your minecraft server and enter your MySQL data in the database.yml file. The MySQL credentials must be the same, as on the bungeecord / velocity server.
You can then access the API through
SpigotAPI api = SpigotAPI.getInstance();FriendManager
The FriendManager provides functionality related to managing friends and their interactions.
You can retrieve the FriendManagerby using:
FriendManager friendManager = api.getFriendManager();You can use the FriendManager for the following:
void getFriendPlayer(UUID uuid, Consumer<FriendPlayer> friendPlayer);void getFriendPlayer(String name, Consumer<FriendPlayer> friendPlayer);FriendPlayer getFriendPlayer(UUID uuid);FriendPlayer getFriendPlayer(String name);FriendPlayer
The FriendPlayer represents a player within the Friend System.
You can retrieve the following informations from a FriendPlayer
PartyManager
The PartyManager provides functionality related to managing or retrieving parties.
You can use the PartyManager for the following:
Party
The Partyrepresents a party within the Friend System.
You can retrieve the following informations from a Party
Last updated