LightApi - Modern Annotation-Based API for Developers icon

LightApi - Modern Annotation-Based API for Developers -----

The powerful, modern, and easy-to-use API your plugins deserve.




LightApi
The Advanced, Modern API for Your PaperMC Server
What is LightApi?
LightApi is a powerful backend library designed for Minecraft plugin developers who want to streamline their workflow and build more robust plugins, faster. It removes the repetitive boilerplate code by providing a clean, annotation-driven system for common tasks like command and listener registration.
Built with modern practices in mind, it includes a type-safe language manager with MiniMessage support, making multi-language support a breeze. If you're a developer, LightApi is the foundational toolbox you need to bring your ideas to life without getting bogged down in the basics.
[HR][/HR]
Core Features for Developers

  • Annotation-Driven Systems: Simply use @command and @SubCommand annotations on your classes and methods. LightApi handles the complex registration and execution logic for you. No more messy onCommand methods!
    Built-in Language Manager: Create multi-language plugins with ease. Comes with a Message enum for type-safe message handling and full MiniMessage support for beautiful, component-based text.
    Simplified Listener Registration: Automatically scan and register all your listener classes within a package with a single line of code.
    Centralized Error Handling: A global exception handler ensures that command errors are caught gracefully, providing a clean experience for users and clear logs for administrators.
  • Modern & Lightweight: Designed specifically for modern PaperMC versions, using the Adventure library for all text components. It stays out of your way and provides power without the bloat.
How to Use LightApi in Your Plugin
Integrating LightApi is simple:
1. Add the Dependency:
Add LightApi as a dependency in your pom.xml (for Maven) or build file.
2. Depend in Your plugin.yml:
Make sure your plugin loads after LightApi by adding this to your plugin.yml:
Code (Text):
depend: [LightApi]
3. Register Your Modules:
In your plugin's onEnable method, register all your commands and listeners with one simple call:
Code (Text):

@Override
public void onEnable() {
// Register all commands in your commands package
LightApiAccessor.get().getCommandManager().registerCommands(this, "com.myplugin.commands");
code
Code
// Register all listeners in your listeners package
LightApiAccessor.get().getListenerManager().registerListeners(this, "com.myplugin.listeners");
}
 
It's that easy! You can now focus on writing your plugin's logic.
Support & Community
Have questions, need help implementing LightApi, or want to share what you've built? Join our official Discord community!
Click here to join our Discord Server!
Thank you for choosing LightApi to power your next project!
This is a dependency for other plugins and does not add features on its own.​
Resource Information
Author:
----------
Total Downloads: 4
First Release: Nov 2, 2025
Last Update: Nov 2, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings