Developer API
The plugin offers a complete developer BungeeCord/Velocity API, which allows other plugins on the server to manage friends, parties, settings and much more.
To use the API, simply add the 'FriendSystem-Velocity.jar' or 'FriendSystem-Bungee.jar' to your project.
You can then access the API through
FriendSystemAPI api = FriendSystem.getAPI();FriendManager
The FriendManager provides functionality related to managing friends and their interactions.
You can retrieve the FriendManagerby using:
IFriendManager friendManager = api.getFriendManagerAPI();
You can use the FriendManager for the following:
IFriendPlayer getFriendPlayer(String uuidOrName);void toggleInvites(IFriendPlayer player);void toggleMsgs(IFriendPlayer player);void toggleNotifies(IFriendPlayer player);void toggleJumping(IFriendPlayer player);updateStatus(IFriendPlayer player, String status);addFriendRequest(IFriendPlayer requester, IFriendPlayer target);acceptFriendRequest(IFriendPlayer accepter, IFriendPlayer requester);denyFriendRequest(IFriendPlayer denier, IFriendPlayer requester);removeFriend(IFriendPlayer remover, IFriendPlayer removed);toggleFavouriteFriend(IFriendPlayer remover, IFriendPlayer removed);FriendPlayer
The IFriendPlayer represents a player within the Friend System.
You can retrieve the following informations from a IFriendPlayer
PartyManager
The PartyManager provides functionality related to managing or retrieving parties.
You can use the PartyManager for the following:
IParty
The IPartyrepresents a party within the Friend System.
You can retrieve the following informations from a IParty
Last updated