HyronicFriends is a plugin that adds to your friend system. With this plugin, you can send friend requests, receive notifications when your friends are online, teleport instantly to your friends, and most importantly, you can send mail to your friends, including items as attachments.
It is very simple to install this plugin, just following these steps:
Step 1: Stop your server if it is running.
Step 2: Download the plugin via marketplaces we have metioned above.
Step 3: Copy the jar file you just downloaded (normally named HyronicFriends.jar) to your plugins folder.
Step 4: Start your server and enjoy.
Resource pack
Caution
If you’re SpigotMC user, you have to join our Discord in order to get the configuration for the texture pack (Oraxen/ItemsAdder Configuration).
Please follow these steps for the most accurate installation:
Step 1: Open your Downloads folder, where files are saved after downloading.
Step 2: Open the zip file you have downloaded.
Step 3: There is a folder named Texturepack, just open it.
Step 4: Drag & Drop 3 folders included there to your "/plugins/". If the system asks you about replacing files, just click “Yes to all”.
Step 5: This zip file contains the resource-pack of the Oraxen and ItemsAdder plugin. Depending on which one you want to use, reload its configuration.
Step 6: Reload the HyronicFriends configuration and enjoy.
BungeeCord/Velocity
Caution
HyronicFriends has two versions: one for bukkit and one for BungeeCord. The BungeeCord/Velocity version is just a middleware (I will also call it’s “middleware” in this instruction), it will not work if you don’t have the bukkit version in your server. Then, just follow our instructions for the most accurate installation.
Download middleware plugin
For HyronicFriends-BungeeCord plugin, it is available on SpigotMC for free.
For HyronicFriends-Velocity plugin, you can download it via this link.
Installation Guide
Step 1: Put the middleware jar file into /[BungeeCord/Velocity]/plugins/ folder.
Step 2: Load the BungeeCord/Velocity for the first time.
Step 3: Open the config.yml file and configure it. Any changes made after being officially used may result in data loss.
Step 4: Go to your HyronicFriends folder (start your server if you don’t see it) for bukkit/spigot/paper version. Open the config.yml file, then change the value of MultiNetworks to true, and Database.Type to MySQL. Make sure you stopped your server before changing.
Step 5: Start your BungeeCord/Velocity first, then your servers.
Commands & Permissions
Permissions
General permissions
Permissions
Default
Description
hyronicfriends.*
FALSE
Allows the player to access everything of the plugin.
hyronicfriends.mails.size.maximum
OP
Allows the player to have the maximum number of attached item slots.
hyronicfriends.friends.size.unlimited
OP
Allows the player to have an unlimited list of friends.
Command permissions
Permissions
Default
Description
hyronicfriends.command.*
FALSE
Allows the player to access all commands of the plugin.
hyronicfriends.command.help
OP
Allows the player to view the help page command.
hyronicfriends.command.friends
OP
Allows the player to manage their friend list.
hyronicfriends.command.block
OP
Allows the player to block (or unblock) a player.
hyronicfriends.command.teleport
OP
Allows the player to teleport to their friends.
hyronicfriends.command.mail
OP
Allows the player to send (or read) mail to their friends.
hyronicfriends.command.reload
OP
Allows the player to reload the configuration.
Commands
Caution
We provide you with many commands. Some of them have been shortened, so we’ll split them up into different tables.
General commands
Commands
Description
/friend help [page]
View the help page command
/friend
Open main menu
/friend toggle
Toggle receive friend request
/friend notify
Turn on/off your friend online status
/friend add <player>
Send a friend request
/friend accept <player>
Accept a friend request
/friend decline <player>
Decline a friend request
/friend cancel <player>
Cancel the sent friend request
/friend list
Open your friend list
/friend reload
Reload the configuration
/unfriend <player>
Unfriend a player
Blocking commands
Commands
Description
/blockedlist
Open your blocked list
/block <player>
Block a player
/unblock <player>
Unblock a player
Teleport commands
Commands
Description
/ftp <player>
Teleport to your friend
/toggletp <player>
Allow/Disallow your friend to teleport to you
Private message commands
Commands
Description
/togglemsg <player>
Enable/Disable receiving your friend message
/fmsg <player> <message>
Send private message to your friend
/freply <message>
Quick reply to the most recent message
Mail commands
Commands
Description
/mail help
View the list of mail commands
/mailbox
Open your mailbox
/mail <player>
See all mails sent/received to/from a player
/mail send <player> <content>
Send mail to your friend
/mail read <player>
Read the recently received mail
/togglemail <player>
Allow/Disallow your friend to send mail to you
Placeholders
We also provide you with a few placeholders. If you don’t find what you need, please join our Discord server and suggest it.
Caution
These placeholders require the PlaceholderAPI plugin to work.
Placeholders
Description
%hfriends_friendlist_size%
Shows the number of players on your friend list.
%hfriends_friendlist_max%
Shows the maximum number of friends a player can have on the list. -1 means unlimited.
%hfriends_friendlist_is_max%
Shows whether the player has reached the maximum number of friends.
%hfriends_blockedlist_size%
Shows the number of players on your blocked list.
%hfriends_has_unread_mail%
Shows whether the player has unread mails.
%hfriends_has_waiting_request
Shows whether the player has requests are waiting to respond.
%hfriends_is_friend_<player>%
Checks whether a player is your friend.
%hfriends_is_blocked_<player>%
Checks whether a player is blocked by you.
%hfriends_can_teleport_to_<player>%
Checks whether you can teleport to a player.
%hfriends_can_send_msg_to_<player>%
Checks whether you can send private message to a player.
%hfriends_can_send_mail_to_<player>%
Checks whether you can send mail to a player.
Developer APIs
General player data
We provide you with a class named /api/user/User.java that gives you general player data, including the list of friends, the list of blocked players, mailbox, and more… You can use 2 methods provided from public class FriendAPI to get the player data:
Before teleporting to your friend, you should check whether your friend allows you to teleport to them by using the method below:
booleancanTeleportTo();
To check whether your friend can teleport to you, use this method:
booleancanTeleport();
To allow/disallow your friend to teleport to you, use this method:
booleansetCanTeleport(boolean canTeleport);
Allow to receive mail from friends
booleancanMail(); // Checks whether the player can receive the mail of their friend or not.voidsetCanMail(boolean canMail); // Sets whether the player can receive the mail of their friend or not.
Mailbox
This mailbox will contain all mails, including mails you have sent and mails you have received from your friends. It can be invoked from the User class:
Mailbox getMailbox();
Send new mail
To send a mail to your friend:
Mail mail =new MailImpl(UUID sender, UUID target, String content, ItemStack... items);
mail.send();
Attached items
To get attached items from a letter:
List<ItemStack>getAttachedItem();
Sender - revoke items from mail
There are 2 methods that allow you to revoke your items from the letter:
booleanrevokeItem(ItemStack item); // Revoke the specified item.booleanrevokeAllItems(); // Revoke all items contained in the letter.
Receiver - take items from mail
Same as revoke items, there are 2 methods that allow you to take items from the letter:
booleantakeItem(ItemStack item); // Take the specified item.booleantakeAllItems(); // Take all items contained in the letter.
Events
We also provide you with some event classes, see details at: Events API.