Skip to content

ConaxGames/cLibraries

Repository files navigation

cLibraries

A Bukkit/PaperMC plugin development framework.

Installation

Maven
<dependency>
    <groupId>com.conaxgames</groupId>
    <artifactId>clibraries</artifactId>
    <version>1.2.2</version>
    <scope>compile</scope>
</dependency>
Gradle
dependencies {
    implementation 'com.conaxgames:clibraries:1.2.2'
}

Shade the library into your plugin to avoid conflicts.

Usage

public class YourPlugin extends JavaPlugin {
    
    @Override
    public void onEnable() {
        new LibraryPlugin().onEnable(
            this, 
            "§2", 
            "§7", 
            "pluginname", 
            "pluginname.permission"
        );
    }
    
    @Override
    public void onDisable() {
        LibraryPlugin.getInstance().onDisable();
    }
}

Access the library instance anywhere using LibraryPlugin.getInstance().

Supported APIs

  • Menu - Inventory GUI framework
  • Scheduler - Bukkit/Folia scheduling abstraction
  • Board - Scoreboard management
  • Timer - Cooldown timer system with event support
  • ItemBuilderUtil - Item builder utility
  • Player Inventory Snapshot - Player inventory snapshot and restore
  • Configuration - YAML configuration with comment preservation
  • CC - Chat color constants and translation (including hex)
  • Center - Pixel-based chat message centering
  • ClassUtils - Package class scanning and discovery utilities
  • XPUtil - Experience point calculation and management utilities
  • ColorMaterialUtil - Chat color to wool, terracotta, and carpet material mapping
  • ProgressionBar - Text-based progress bar builder for chat or scoreboards

License

MIT License

About

A streamlined API tailored for PaperMC, providing powerful utilities and extensions to accelerate server development and fuel innovation.

Resources

License

Stars

Watchers

Forks

Contributors

Languages