jairusperas9-cmyk

make me a pvp duel plugin that can choose any kits such as diamond smp, tnt cart, spear-mace, elytra rocket mace, sword pvp, crystal pvp and easy to setup

Kodari AI
KodariFeb 25 at 2:12 pm 23,466 (v2)

Iโ€™ll create a comprehensive PvP duel plugin with multiple kit types and easy setup.

DuelMaster
A feature-rich PvP duel plugin supporting multiple combat styles including Diamond SMP, TNT Cart, Spear-Mace, Elytra Rocket Mace, Sword PVP, and Crystal PVP. Players can challenge others or join a queue for random matchmaking. Includes arena management, statistics tracking, spectator mode, and customizable kits through easy-to-edit configuration files. Designed for quick setup with pre-configured kits ready to use.

Perfect! Iโ€™ve created a comprehensive PvP duel plugin with all requested features:

Features:

  • 6 pre-configured kits: Diamond SMP, TNT Cart, Spear-Mace, Elytra Rocket Mace, Sword PVP, and Crystal PVP

  • GUI-based kit selection

  • Duel invites system and queue/matchmaking

  • Arena management with multiple spawn points

  • Statistics tracking (wins/losses/ratio/streak)

  • Easy setup through simple commands

Setup Instructions:

  1. /dueladmin setlobby - Set the lobby spawn point

  2. /dueladmin arena pos1 - Stand at first spawn location

  3. /dueladmin arena pos2 - Stand at second spawn location

  4. /dueladmin arena create <name> <kit-type> - Create arena (use โ€œallโ€ for any kit or specific kit ID)

Player Commands:

  • /duel <player> - Challenge a player (opens kit GUI)

  • /duel queue - Join random matchmaking (opens kit GUI)

  • /duel accept - Accept a duel invite

  • /duel deny - Deny a duel invite

  • /duel leave - Leave queue or forfeit current duel

  • /duel stats [player] - View statistics

All kits are fully customizable in kits.yml with easy-to-edit item configurations!

jairusperas9-cmyk

can u also add more kits?

Kodari AI
KodariFeb 25 at 2:13 pm 10,509 (v2)

Iโ€™ll read the existing kit-related files to see whatโ€™s currently implemented and add more kits.

Iโ€™ll add more diverse and interesting kits to the plugin.

Added 10 more kits to the plugin: Archer (ranged combat specialist), Potion Master (splash/lingering potions), Tank (heavy armor + shields), Berserker (no armor, massive damage), Combo Master (knockback + fishing rod), Wizard (crossbow + magic items), Sniper (long-range crossbow), UHC (classic ultra hardcore), Samurai (sweeping edge focus), and Turtle (ultimate defense). Now players have 16 different kits to choose from!

jairusperas9-cmyk

can u also add reward points and can use it to get trims and death effect and kill effects and more

Kodari AI
KodariFeb 25 at 2:24 pm 52,518 (v2)

Iโ€™ll add a reward points system with purchasable cosmetics including armor trims, death effects, kill effects, and more.

Iโ€™ll add a comprehensive reward points system with purchasable cosmetics including armor trims, death effects, kill effects, and more.

Now I need to update the main plugin class, add commands, update listeners, and create configs:

Now let me read the managers to check if there are any other files I need:

Added comprehensive reward points system with purchasable cosmetics - players earn points on wins with streak bonuses, can purchase armor trims, death effects, and kill effects through /duel shop <trims|death|kill>, with effects automatically applying in duels.

jairusperas9-cmyk

can u also make it into a item selector each?

Kodari AI
KodariFeb 25 at 2:36 pm 22,199 (v2)

I need to see what youโ€™re referring to. Let me read the existing GUI and manager files to understand what should be converted into item selectors.

Iโ€™ll create item-based GUI selectors for arenas and player selection to make the plugin fully GUI-based.

Iโ€™ll create two new GUIs: one for selecting players to duel and one for managing arenas as an admin.

Created two new item-based GUIs: PlayerSelectorGUI (shows all online players as skulls to select for dueling) and ArenaManagerGUI (shows all arenas with management options). Updated commands with /duel players and /dueladmin arenas shortcuts.

jairusperas9-cmyk

i want it to random queue with players who wanna duel

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
31 3,230
src/main/java/com/duelmaster/DuelMaster.java
package com.duelmaster;

import com.duelmaster.commands.DuelAdminCommand;
import com.duelmaster.commands.DuelCommand;
import com.duelmaster.listeners.DuelListener;
import com.duelmaster.listeners.PlayerListener;
import com.duelmaster.managers.ArenaManager;
import com.duelmaster.managers.CosmeticManager;
import com.duelmaster.managers.DuelManager;
import com.duelmaster.managers.KitManager;
import com.duelmaster.managers.PlayerDataManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DuelMaster extends JavaPlugin {
    
    private KitManager kitManager;
    private ArenaManager arenaManager;
    private DuelManager duelManager;
    private PlayerDataManager playerDataManager;
    private CosmeticManager cosmeticManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("kits.yml", false);
        saveResource("arenas.yml", false);
        
        this.kitManager = new KitManager(this);
        this.arenaManager = new ArenaManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.cosmeticManager = new CosmeticManager(this);
        this.duelManager = new DuelManager(this);
        
        getCommand("duel").setExecutor(new DuelCommand(this));
        getCommand("dueladmin").setExecutor(new DuelAdminCommand(this));
        
        getServer().getPluginManager().registerEvents(new DuelListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        
        getLogger().info("DuelMaster has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (duelManager != null) {
            duelManager.endAllDuels();
        }
        getLogger().info("DuelMaster has been disabled!");
    }
    
    public void reload() {
        reloadConfig();
        kitManager.loadKits();
        arenaManager.loadArenas();
        cosmeticManager.loadCosmetics();
    }
}