emerald8910_
📎 1 file 2,699 chars
📄
pasted-code-1773685385562.txt
txt 2 lines
▶
Dynasty Wars is a Minecraft plugin where players are automatically placed into one of five powerful dynasties and everything is controlled through interactive GUIs instead of complicated commands. The five dynasties are Iron Vanguard (Strength Dynasty) which gives members permanent Strength I, Storm Runners (Speed Dynasty) which gives permanent Speed I, Stone Guardians (Resistance Dynasty) which gives permanent Resistance I, Eternal Bloom (Healing Dynasty) which gives Regeneration I so they slowly heal over time, and Shadow Venom (Poison Dynasty) whose members poison enemies for a few seconds whenever they hit them. When an admin runs **/startgame**, the plugin begins the dynasty game by automatically dividing every online player evenly among the five dynasties so teams stay balanced even if there are extra players, assigning them their dynasty power, teleporting them to their starting locations, and triggering dramatic start effects like lightning strikes, particle bursts, and a title message announcing the beginning of the war. Every system in the plugin is controlled through GUIs opened with **/dynasty**, which brings up the main Dynasty Menu showing buttons like Members, Trust Players, Dynasty Power, Bounties, Upgrades, and Leaderboards. The Members INVENTORY GUI shows all dynasty members using player heads and allows leaders to manage roles, the Trust INVENTORY GUI lets players trust or untrust specific players so trusted players can open chests, use doors, or interact with things in their base without being attacked by protection systems, and trusting someone is done by clicking their head in a list of players which adds them to a trusted list stored by the plugin. The Bounty INVENTORY GUI allows players to place money rewards on other players’ heads by selecting the target and choosing a bounty amount, which then appears on a global bounty board so anyone who kills that player receives the reward. The Upgrades INVENTORY GUI lets dynasties spend resources to unlock bonuses like stronger abilities, extra health, better regeneration, or stronger poison effects, while the Leaderboard INVENTORY GUI displays the top dynasties based on kills, bounties claimed, and total power. All menus use inventory-style interfaces with icons, colored glass panes, and player heads so players can navigate the system visually without typing commands, making the plugin feel like a strategy game inside Minecraft. The overall goal of the game is for dynasties to cooperate internally, manage trusted allies, hunt enemies, collect bounties, and dominate the server using their unique abilities while the INVENTORY GUI-driven systems keep everything organized and easy to use.
Kodari AI
KodariMar 16 at 6:26 pm 24,288 (v2)

I’ll create Dynasty Wars, a GUI-based faction warfare plugin with five unique dynasties and interactive menu systems.

DynastyWars
A strategic faction warfare plugin where players join one of five powerful dynasties, each with unique abilities. Features automatic team balancing, a complete trust system for base protection, player bounties with economy rewards, dynasty upgrades, and comprehensive leaderboards. All functionality is accessed through intuitive inventory-based GUIs including member management, trust systems, bounty placement, and upgrade purchases. Includes dramatic game start mechanics with automatic player distribution and spawn teleportation.

Dynasty Wars plugin created successfully! This comprehensive GUI-based warfare system includes five unique dynasties with special powers, automatic team balancing via /startgame, and complete menu systems accessible through /dynasty. Features include member management with player heads, trust systems for base protection, economy-integrated bounties, dynasty upgrades using power levels, and competitive leaderboards - all controlled through intuitive inventory interfaces without complex commands.

emerald8910_

uhh you didnt add the extra subcommands can you do that please

Kodari AI
KodariMar 16 at 6:36 pm 15,702 (v2)

I need to read the existing command files to see what subcommands are currently implemented and what might be missing.

I’ll add comprehensive subcommands to the dynasty command system. Let me read the manager and model files first to understand the data structure better.

Now I’ll add comprehensive subcommands to the dynasty command with tab completion.

Added comprehensive subcommands to the dynasty command system with tab completion and help menu. Players can now use /dynasty with help, info, leave, trust, untrust, members, leaderboard, powers, bounties, and upgrades subcommands.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
33 2,003
src/main/java/com/dynastywars/DynastyWars.java
package com.dynastywars;

import com.dynastywars.command.DynastyCommand;
import com.dynastywars.command.StartGameCommand;
import com.dynastywars.inventory.gui.GUIListener;
import com.dynastywars.inventory.gui.GUIManager;
import com.dynastywars.listener.CombatListener;
import com.dynastywars.listener.PlayerJoinListener;
import com.dynastywars.listener.PlayerQuitListener;
import com.dynastywars.manager.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DynastyWars extends JavaPlugin {
    private ConfigManager configManager;
    private DynastyManager dynastyManager;
    private PlayerDataManager playerDataManager;
    private TrustManager trustManager;
    private BountyManager bountyManager;
    private UpgradeManager upgradeManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        configManager = new ConfigManager(this);
        dynastyManager = new DynastyManager(this);
        playerDataManager = new PlayerDataManager(this);
        trustManager = new TrustManager(this);
        bountyManager = new BountyManager(this);
        upgradeManager = new UpgradeManager(this);
        guiManager = new GUIManager();

        dynastyManager.loadSpawnLocations();

        DynastyCommand dynastyCommand = new DynastyCommand(this);
        getCommand("dynasty").setExecutor(dynastyCommand);
        getCommand("dynasty").setTabCompleter(dynastyCommand);
        getCommand("startgame").setExecutor(new StartGameCommand(this));

        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);

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

    @Override
    public void onDisable() {
        getLogger().info("Dynasty Wars has been disabled!");
    }
}