Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW โ†’
DEVELOPER ๐ŸŒ API

๐Ÿ”ง Custom Addons

On this page, you will find how to build and register your own Phoenix Duels addons.

triangle-exclamation

The API is only available for the premium version of the plugin.

Custom Addons are extensions that allow you to extend, modify, or enhance Phoenix Duels behavior with your own Java code.

#Before You Start

  1. Add the API dependency from the API page.
  2. Create your addon project (Maven or Gradle).
  3. Make sure your final artifact is a shaded or standalone JAR when needed.

#addon.yml

Create an addon.yml file in your project resources folder.

name: AddonName
main: your.path.AddonExample
author: [YourName]
version: 1.0.0
description: Small description (optional)
website: https://your-website.com (optional)

Required fields:

  • name: Display name of your addon.
  • main: Fully qualified path to your addon main class.
  • author: One or more addon authors.
  • version: Addon version.

#Main Class Example

The main value in addon.yml must point to your class that extends Addon.

package your.path;

import com.phoenixplugins.phoenixduels.api.sdk.plugin.addons.Addon;

public class AddonExample extends Addon {

    @Override
    public void init() {
        // Register rules, menus, modules, or listeners.
    }

    @Override
    public void load() {
        // Runtime registrations and startup logic.
    }

    @Override
    public void unload() {
        // Cleanup logic.
    }

    @Override
    public void reload() {
        // Optional runtime reload logic.
    }

    @Override
    public String getRequiredPluginVersion() {
        return "1.0.0";
    }
}

#Build and Install

  1. Build your addon JAR with your normal project build command.
  2. Move the compiled JAR into plugins/PhoenixDuels/addons.
  3. Restart the server.
  4. Check console logs to confirm the addon was loaded successfully.

#Next Step

Continue with ๐Ÿงช Examples for practical event and profile integrations.

Last updated about 3 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more