ModsJava
LightApi - Modern Annotation-Based API for Developers
Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotLightApi
The Advanced, Modern API for Your PaperMC Server
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.
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]
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");
}
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.
This is a dependency for other plugins and does not add features on its own.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
LightApi - Modern Annotation-Based API for Developers is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 100 times (via Spigot). Download it and open it directly in the game.