00_spider_00.

I need a Minecraft power plugin where every player receives a random power when they join the server. When the player gets their power, the name of the power should appear on their screen so they know which power they received.

The player should also be able to use the power with commands. Each power will have abilities, and the player can access them using a command.

There will be a command: /power When a player uses this command, the abilities of the power they received should appear in their hotbar, and the player can use those abilities from the hotbar.

Powers There will be 5 different powers:

Fire Earth Water Air Lightning Each power will have different abilities.

Abilities Every power will have 5 abilities.

However, two powers will have 6 abilities instead of 5.

These two powers are:

Fire → 6 abilities Lightning → 6 abilities All other powers will have 5 abilities each.

If you want, I can also convert this into a proper plugin description for developers (clean and professional) so it becomes much easier for a developer to build the plugin.

Kodari AI
KodariMar 9 at 10:11 am 28,902 (v2)

I’ll create a comprehensive power plugin with random power assignment and ability systems.

ElementalPowers
A dynamic power system that assigns each player a random elemental power when they join. Players receive one of five elemental powers (Fire, Earth, Water, Air, Lightning) and can access unique abilities through an intuitive hotbar GUI. Fire and Lightning powers feature 6 abilities each, while Earth, Water, and Air have 5 abilities. Each ability provides distinctive gameplay mechanics including offensive attacks, defensive shields, mobility enhancements, and special effects.

I’ve successfully created the ElementalPowers plugin with all core features:

Core Systems:

  • Random power assignment on join (Fire, Lightning, Earth, Water, Air)

  • Title display showing received power

  • /power command to open abilities GUI

  • Complete cooldown system for all abilities

Powers & Abilities:

  • Fire (6): Fireball, Fire Shield, Blaze, Inferno, Combustion, Phoenix

  • Lightning (6): Lightning Strike, Thunder Dash, Electric Shield, Chain Lightning, Storm Call, Zeus Wrath

  • Earth (5): Stone Wall, Earth Spike, Tremor, Boulder Throw, Iron Skin

  • Water (5): Water Jet, Healing Wave, Ice Prison, Tsunami, Aqua Shield

  • Air (5): Wind Blast, Levitation, Air Jump, Tornado, Swift Flight

Each ability has unique effects, proper cooldowns, visual feedback, and interactive GUI with real-time cooldown display. Data persists between server restarts.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
41 2,415
src/main/java/com/example/powerplugin/PowerPlugin.java
package com.example.powerplugin;

import com.example.powerplugin.commands.PowerCommand;
import com.example.powerplugin.listeners.AbilityListener;
import com.example.powerplugin.listeners.JoinListener;
import com.example.powerplugin.managers.AbilityManager;
import com.example.powerplugin.managers.DataManager;
import com.example.powerplugin.managers.PowerManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PowerPlugin extends JavaPlugin {
    
    private DataManager dataManager;
    private PowerManager powerManager;
    private AbilityManager abilityManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.dataManager = new DataManager(this);
        this.powerManager = new PowerManager(this);
        this.abilityManager = new AbilityManager(this);
        
        dataManager.loadAllData();
        
        getCommand("power").setExecutor(new PowerCommand(this));
        
        getServer().getPluginManager().registerEvents(new JoinListener(this), this);
        getServer().getPluginManager().registerEvents(new AbilityListener(this), this);
        
        getLogger().info("ElementalPowers has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveAllData();
        }
        getLogger().info("ElementalPowers has been disabled!");
    }
}