Skip to content

Latest commit

 

History

History
78 lines (59 loc) · 4.7 KB

File metadata and controls

78 lines (59 loc) · 4.7 KB

cLibraries

PaperMC helpers for Minecraft server plugins maintained by ConaxGames.

CI License Downloads Discord

Resources

Libraries

Framework helpers shipped in the artifact (entry-point classes linked).

Install

Maven

<dependency>
    <groupId>com.conaxgames</groupId>
    <artifactId>clibraries</artifactId>
    <version>1.4.0</version>
</dependency>

Gradle

implementation 'com.conaxgames:clibraries:1.4.0'

Shade this library inside your artifact to avoid clashes; relocate com.conaxgames as needed (Maven Shade · Shadow).

Bootstrap

@Override
public void onEnable() {
    new LibraryPlugin().onEnable(this, "§2", "§7", "yourplugin", "yourplugin.permission");
}

@Override
public void onDisable() {
    LibraryPlugin.getInstance().onDisable();
}

Use LibraryPlugin.getInstance() anywhere after onEnable.

Credits

clibraries ships against papermc tooling and owes its stability to upstream platform work:

Paper · Folia · Velocity · XSeries