thomasstubbings10-sys

make it have a class system and one of them is called Apollo a other one is Zeus a other one is poseidon a other one is Hercules each class has abilities based on the god powers

Kodari AI
KodariMay 7 at 1:25 pm 19,489 (v2)

I’ll create a Greek mythology-themed class system plugin with divine powers for each god.

GodsOfOlympus
A Greek mythology class system where players choose to embody Apollo, Zeus, Poseidon, or Hercules. Each god grants unique abilities: Apollo wields healing and solar power, Zeus commands lightning and storms, Poseidon controls water and oceanic forces, and Hercules channels superhuman strength. Players activate abilities with cooldowns, earn power through gameplay, and engage in divine combat with god-specific powers and passive effects.

Now I’ll create the complete plugin structure with all god classes and their abilities.


GodsOfOlympus plugin created! Players can choose between Apollo, Zeus, Poseidon, and Hercules, each with 3 unique abilities activated by right-clicking specific items. Includes passive buffs, cooldown system, GUI class selection, and persistent data storage. Use /class to get started!

thomasstubbings10-sys

make it have a /abilitie command

Kodari AI
KodariMay 7 at 1:34 pm 9,122 (v2)

I’ll add an /abilities command that shows players their current class and available abilities with descriptions and cooldowns.

Now I’ll create the AbilitiesCommand class:

Now I’ll update the plugin.yml to register the command and update GodsOfOlympus.java to register it:

Now let’s add messages for the abilities command in config.yml:

Perfect! I’ve added the /abilities command with the following features:

What it does:

  • Shows your current god class with a header

  • Lists all 3 abilities for your class with names, descriptions, and cooldowns

  • Displays real-time cooldown status (✔ Ready or ✘ remaining time)

  • Shows passive effects active for your class

  • If you don’t have a class, prompts you to select one

Aliases: /ability, /skills, /powers

Example output:

Plain Text
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
        Apollo Abilities:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Solar Burst - Unleash a burst of solar energy
  Cooldown: 30s | Status: ✔ Ready

Divine Healing - Heal yourself and nearby allies
  Cooldown: 45s | Status: ✘ 23s

Prophetic Vision - See through walls
  Cooldown: 60s | Status: ✔ Ready

Passive Effects:
  • Speed II
  • Regeneration II

Use the class items to activate abilities!

The command dynamically fetches cooldown data from player storage and shows real-time status!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
26 1,819
src/main/java/com/olympus/godsofolympus/GodsOfOlympus.java
package com.olympus.godsofolympus;

import com.olympus.godsofolympus.commands.AbilitiesCommand;
import com.olympus.godsofolympus.commands.ClassCommand;
import com.olympus.godsofolympus.data.DataManager;
import com.olympus.godsofolympus.listeners.AbilityListener;
import com.olympus.godsofolympus.listeners.PassiveListener;
import com.olympus.godsofolympus.managers.ClassManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class GodsOfOlympus extends JavaPlugin {

    private ClassManager classManager;
    private DataManager dataManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.dataManager = new DataManager(this);
        this.classManager = new ClassManager(this);
        
        registerCommands();
        registerListeners();
        
        dataManager.loadAllData();
        
        Bukkit.getConsoleSender().sendMessage("§6[GodsOfOlympus] §aPlugin enabled! The gods are watching...");
    }

    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveAllData();
        }
        Bukkit.getConsoleSender().sendMessage("§6[GodsOfOlympus] §cPlugin disabled. The gods rest...");
    }

    private void registerCommands() {
        getCommand("class").setExecutor(new ClassCommand(this));
        getCommand("abilities").setExecutor(new AbilitiesCommand(this));
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new AbilityListener(this), this);
        getServer().getPluginManager().registerEvents(new PassiveListener(this), this);
    }

    public String getMessage(String path) {
        return getConfig().getString("messages." + path, "&cMessage not found: " + path)
                .replace("&", "§");
    }

    public String getPrefix() {
        return getMessage("prefix");
    }
}