umardalvi

Make a plugin name Eclipse Smp Aisa rakho ke h infuse smp me jaise hotbar ke upar ata h wese rakho jisme hotbar ke upar power btati wese and aisa rakho ke right click se power use hoti ho powers 1.speed 2 2.regenration 2 3.resistence 2 4.thunder (lighting bolt giregi damage 5 heart ka) 5.dolphin grace 6.warden sonic beem (one time warden sonic boom damage 5 hearts ka) 7.dragon breath (dragon breath) 8.feather falling Sab effect 10 second ke liye hoge sonic boom and thunder only 1 time sab effect ka cool down 15 second (translate into English)

Here’s your request translated into clear English:

Create a plugin named Eclipse SMP. Make it similar to Infuse SMP, where powers are displayed above the hotbar. It should show the available powers above the hotbar, just like in Infuse SMP.

The powers should be activated using right-click.

Powers:

Speed II

Regeneration II

Resistance II

Thunder (a lightning bolt strikes, dealing 5 hearts of damage)

Dolphin’s Grace

Warden Sonic Beam (a one-time sonic boom attack dealing 5 hearts of damage)

Dragon Breath

Feather Falling

All effects should last 10 seconds.

Sonic Boom and Thunder should be one-time use per activation.

Each power should have a cooldown of 15 seconds.

Only one power should be active per player at a time (not multiple powers together).

Add a command: /eclipsesmp start

When this command is executed:

The SMP should start for all players.

Every player should receive a random, different power.

Each player must have only one power, and it should be displayed above the hotbar.

No player should have multiple powers at the same time.Bro, add a command /eclipsesmp remove — when this command is used, all players’ effects should be removed.

And above the hotbar, it should show the power we currently have — only the one we have, nothing else.

And we need to do shift + right click to use effectYou can use the effect by pressing Shift + Right Click, both in the air and on a block.

The effect should be displayed above the hotbar in a box, showing the effect name and whether it is ready, along with other related details.

Kodari AI
KodariApr 29 at 9:41 am 8,618 (v2)

I’ll create an Eclipse SMP plugin with powers displayed above the hotbar, activated via Shift + Right Click.

EclipseSMP
A unique SMP powers system where each player receives one random power displayed above the hotbar. Powers include Speed II, Regeneration II, Resistance II, Thunder Strike, Dolphin's Grace, Warden Sonic Boom, Dragon Breath, and Feather Falling. Each power has a 15-second cooldown and lasts 10 seconds (or deals instant damage). Players activate their power using Shift + Right Click. Includes commands to start the SMP and distribute powers, or remove all effects.

Perfect! I’ve created the Eclipse SMP plugin with all requested features:

Features implemented:

  • 8 unique powers (Speed II, Regeneration II, Resistance II, Thunder Strike, Dolphin’s Grace, Sonic Boom, Dragon Breath, Feather Falling)

  • Powers activated via Shift + Right Click (both in air and on blocks)

  • Visual display above hotbar showing power name and status (READY or cooldown timer)

  • 15-second cooldown on all powers

  • 10-second duration for effect-based powers

  • Instant damage (5 hearts = 10 damage) for Thunder and Sonic Boom

Commands:

  • /eclipsesmp start - Starts SMP, assigns random unique powers to all online players

  • /eclipsesmp remove - Removes all powers and effects from all players

Power Details:

  • Speed II, Regen II, Resistance II - 10-second potion effects

  • Thunder Strike - Lightning bolt at target location, 5 hearts damage

  • Dolphin’s Grace - 10-second water speed boost

  • Sonic Boom - Warden-style projectile, 5 hearts damage + knockback

  • Dragon Breath - Continuous dragon breath particles with damage over 2 seconds

  • Feather Falling - 10-second slow falling effect

Each player gets exactly one power displayed in a boxed format above their hotbar with real-time cooldown tracking!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 552
src/main/java/com/eclipse/smp/EclipseSMP.java
package com.eclipse.smp;

import com.eclipse.smp.command.PowerCommand;
import com.eclipse.smp.listener.PowerListener;
import com.eclipse.smp.manager.PowerManager;
import com.eclipse.smp.task.ActionBarTask;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class EclipseSMP extends JavaPlugin {

    private PowerManager powerManager;
    private ActionBarTask actionBarTask;

    @Override
    public void onEnable() {
        this.powerManager = new PowerManager(this);
        this.powerManager.loadData();

        getServer().getPluginManager().registerEvents(new PowerListener(this), this);
        
        getCommand("eclipsesmp").setExecutor(new PowerCommand(this));

        this.actionBarTask = new ActionBarTask(this);
        this.actionBarTask.start();

        getLogger().info("EclipseSMP has been enabled!");
    }

    @Override
    public void onDisable() {
        if (actionBarTask != null) {
            actionBarTask.stop();
        }
        
        if (powerManager != null) {
            powerManager.saveData();
        }

        getLogger().info("EclipseSMP has been disabled!");
    }
}