Skip to content

CroaBeast/BeansLib

Repository files navigation

Cocoa Beans

BeansLIB

An essential library for your SpigotMC plugin. Features range from advanced gradient text formatting to time parsing.

Please note that this is not a plugin!

Requires Java 8. Works on MC Versions 1.8 - 1.19.

Setup

  1. Add BeansLib into your project via Maven or Gradle (look below).

  2. Create a class to initialize the BeansLib integration. See this example BeansLib class for more info.

    You can also override almost any default BeansLib method in this class.

  3. Initialize your BeansLib class (the one you create) in your main class. See this example main class for more info.

  4. Finally, you can call the methods in every class you want. See this example class for more info.

And you're all set!

Maven and Gradle Integration

Maven - add to pom.xml

<dependencies>
    <dependency>
        <groupId>io.github.croabeast</groupId>
        <artifactId>BeansLib</artifactId>
        <!--Replace version with the latest version-->
        <version>{version commit tag}</version>
    </dependency>
</dependencies>

Gradle - add to build.gradle

dependencies {
    implementation 'io.github.croabeast:BeansLib:{version commit tag}'
}