There are likely better alternatives out there — this project was primarily created as a way for me to learn Java and get familiar with the Minecraft API. If you still wish to use this system, you're absolutely free to do so.
This plugin, designed for Minecraft 1.21.X with MySQL integration, includes familiar friend system commands inspired by those from popular servers:
/friend add <player> - Send a friend request
/friend remove <player> - Remove a player from your friends list
/friend accept <player> - Accept a friend request
/friend deny <player> - Deny a friend request
/friend list - View your list of friends
/message <player> - Send a message to a player
/respond - Respond to the last message
Additionally, a simple GUI for the friend list is available by right-clicking a player head in-game.
-
Download
Download the latest version of the plugin from the Releases tab.
(Alternatively: compile it yourself using Maven or Gradle if you've made changes to the source code.) -
Place in Plugins Folder
Put the downloaded .jar file into your server’s plugins/ directory. -
Create config.yml
Create a folder Friendsystem in your plugins/ folder and create a file named config.yml in there. In this config.yml you should write the connection identifiers to your database:
mysql:
host: "host"
port: 3306
database: "db_name"
username: "your_username"
password: "your_password"
- Start the server
Start (or restart) the server to load the plugin. You can also use /reload if needed.
This project is licensed under the MIT License. However, please note that usage of this plugin is also subject to the Minecraft End User License Agreement (EULA). You are responsible for ensuring that your use complies with both the MIT License and Mojang's EULA.