Getting set up
Set up your development environment and create your first PowerGems addon using SealLib.
This guide walks you through building a simple PowerGems addon using the new API in PowerGems and SealLib. We’ll use Maven.
Requirements
- Java 17+
- A Paper/Spigot server with PowerGems and SealLib installed
Step 1 — Create a plugin project
- Create a Maven project (jar packaging) targeting Java 17.
- Use your own groupId/artifactId. Example below uses dev.yourname.powergemsaddon.
pom.xml
Step 2 — plugin.yml
Add a minimal plugin.yml. Ensure you depend on PowerGems and SealLib so your addon loads after them.
Step 3 — Implement a Gem
Create a class extending dev.iseal.powergems.misc.AbstractClasses.Gem
. Implement the required methods and behavior. You can access game state via Bukkit and plugin systems via SealLib utilities if needed.
Step 4 — Register the Gem using the new API
Use the API entrypoint dev.iseal.powergems.api.ApiManager
to register your gem class from your plugin’s onEnable.
Step 5 — Build and test
- Build your jar with Maven and drop it into your server’s plugins folder alongside PowerGems and SealLib.
- Start the server. On first run, PowerGems will materialize configuration for each registered gem; your gem should appear in relevant configs and be usable.
Tips and notes
- Version matching: ensure the SealLib version on your server matches what you compile against. PowerGems will check for exact SealLib version by default.
- Cooldowns and levels: use the
Gem
base class helpers; cooldowns are resolved viaCooldownManager
and level fromGemManager
. - Particles: return a default particle; PowerGems will resolve final particle from config via
GemManager
/GemParticleConfigManager
. - Compatibility: WorldGuard/CombatLogX integration is handled by PowerGems; your gem actions automatically respect cooldowns and combat tagging via the base
Gem.call
flow.
What’s next?
- Explore utility methods in SealLib (I18N, Metrics) if your addon needs localization or telemetry.
- Check other classes under
dev.iseal.powergems.api
as they evolve. - See FAQ or open a discussion on the community Discord for advanced patterns.