Skip to content

A lightweight Minecraft plugin that adds a simple friend system with commands and a basic GUI. Designed for version 1.21.X, this project was originally created to learn Java and the Minecraft API — but it's fully functional and free to use under the MIT license.

License

Notifications You must be signed in to change notification settings

Bammer187/FriendSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

236 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Friendsystem

Table of Contents

Disclaimer

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.

Description

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.

Installation

  1. 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.)

  2. Place in Plugins Folder
    Put the downloaded .jar file into your server’s plugins/ directory.

  3. 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"

  1. Start the server
    Start (or restart) the server to load the plugin. You can also use /reload if needed.

License

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.

About

A lightweight Minecraft plugin that adds a simple friend system with commands and a basic GUI. Designed for version 1.21.X, this project was originally created to learn Java and the Minecraft API — but it's fully functional and free to use under the MIT license.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages