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:

Retrieve a FriendPlayer
IFriendPlayer getFriendPlayer(String uuidOrName);
Toggle friend invites
void toggleInvites(IFriendPlayer player);
Toggle private messages
void toggleMsgs(IFriendPlayer player);
Toggle join/leave notifies
void toggleNotifies(IFriendPlayer player);
Toggle the option allowing a player to be "jumped to"
void toggleJumping(IFriendPlayer player);
Update the status message
updateStatus(IFriendPlayer player, String status);
Send a friend request
addFriendRequest(IFriendPlayer requester, IFriendPlayer target);
Accept a friend request
acceptFriendRequest(IFriendPlayer accepter, IFriendPlayer requester);
Deny friend request
denyFriendRequest(IFriendPlayer denier, IFriendPlayer requester);
Remove a friend
removeFriend(IFriendPlayer remover, IFriendPlayer removed);
Mark/unmark a friend as favourite
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