Home›Java›Mods›BoringAPI
BoringAPI - The Developer API for BoringGroups
This is the official, lightweight companion API for the BoringGroups plugin. It provides a clean, safe, and stable way for your plugins to interact with BoringGroups' data—such as getting player prefixes or modifying ranks—without needing to include the entire BoringGroups plugin in your project.



It also comes with built-in, automatic support for PlaceholderAPI, providing placeholders for other plugins to use without any extra configuration.

Note: This plugin does nothing on its own. It requires the main BoringGroups plugin to be installed and running.

Key Features
How to Use BoringAPI in Your Plugin
Integrating with BoringAPI is simple. Just follow these three steps.

1. Add the Dependency Add BoringAPI to your project using Maven or Gradle.

Maven (pom.xml):

<repositories>
<!-- You will need to install BoringAPI to your local Maven repo first -->
<!-- Or use a repository like JitPack if you upload it to GitHub -->
</repositories>

<dependencies>
<dependency>
<groupId>me.beyondnova</groupId>
<artifactId>BoringAPI</artifactId>
<version>1.5</version> <!-- Use the latest version -->
<scope>provided</scope>
</dependency>
</dependencies>

2. Add to Your plugin.yml To ensure your plugin loads after the API, add BoringAPI as a softdepend.

name: YourPlugin
version: 1.0
main: com.yourplugin.Main
api-version: '1.21'
softdepend: [BoringAPI, PlaceholderAPI] # Add BoringAPI here

3. Get the API Instance in Your Code In your plugin's code, you can get the API instance and start using its methods. It's best to check if the API is available before using it.

Example:

Code (Java):
import me.beyondnova.boringapi.BoringAPI ;
import me.beyondnova.boringapi.api.BoringGroupsAPI ;
import me.beyondnova.boringapi.api.GroupInfo ;
import org.bukkit.entity.Player ;
import org.bukkit.event.EventHandler ;
import org.bukkit.event.Listener ;
import org.bukkit.event.player.PlayerJoinEvent ;

public class MyListener implements Listener {

   @EventHandler
    public void onPlayerJoin (PlayerJoinEvent event ) {
       Player player = event. getPlayer ( ) ;

        // Get the API instance
       BoringGroupsAPI api = BoringAPI. getApi ( ) ;

        // Always check if the API is available before using it
        if (api != null ) {
           GroupInfo group = api. getPlayerGroup (player ) ;
            if (group != null ) {
               player. sendMessage ( "Welcome! Your rank is: " + group. getName ( ) ) ;
               player. sendMessage ( "Your prefix is: " + api. getFullPrefix (player ) ) ;
            }
        }
    }
}

Automatic PlaceholderAPI Support
If PlaceholderAPI is installed on the server, BoringAPI will automatically register the following placeholders for any other plugin to use:

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

BoringAPI is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 13 times (via Spigot). Download it and open it directly in the game.

Explore more