D

I am remaking Evbo's PVP cyv.

Make me a plugin that adds a new command: /cyvconfig This command can only be used by op players, and opens a custom INVENTORY GUI that contains multiple tabs:

Armor stands:

The armor stands tab contains multiple armor stands with custom properties, as well as a special item (uses blaze rod as a model) to edit an armor stand's properties in game When shift right clicking on an armor stand with the blaze rod, it opens a config menu. In it, the player can set multiple things:

The amount of hits to run a certain command The command ran after the set amount of hits If the armor stand has arms or not

Every armor stand is invincible btw (except to op players) and any type of damage can count as a hit (from any weapon i mean) and when hitting an armor stand, text appears on the bottom of the screen saying: "Amount of hits dealt/Amount of hits needed"

This menu can only be opened by op players and only affects the armor stand that is edited There is also custom armor stands in this tab:

Pvp armor stand:

This armor stand won't do anything alone. It needs a special ID that can be set in its settings (when clicked with the wand) There are 3 types of this armor stand (the type is set in the settings menu as well) Start Armor Stand: starts a run. The player must hit every armor stand with the same id as this one and then hit the End Armor Stand to run a command "Normal" armor stand: the ones the player needs to hit after hitting the start one End armor stand: runs a command if the player hit every armor stand with the same id as it and the Start Armor Stand The player can also set a time limit in the Start armor stand's settings. If there is one, the countdown will be displayed at the bottom of the screen, and if it reaches 0 before the player can reach the End armor stand, the whole thing resets

The Fire Armor Stand is another armor stand that can be obtained through the INVENTORY GUI. It works the same way as the Pvp Armor Stand except it requires the player to use a flint and steel on the block in front of the armor stand for the hit to register

Another tab is the spawn eggs one:

It has multiple spawn eggs the player can give themselves by clicking on them.

Those spawn eggs include:

Wood Player Fighter Stone Player Fighter Iron Player Fighter Gold Player fighter Diamond Player Fighter Netherite Player Fighter

Each one uses the same system but has different gear (each one has the sword corresponding to their name)

They must have advanced pvp ai, and all use player models They must be able to crit hit, combo and all that stuff with their weapon

The main INVENTORY GUI also has a tutorial tab that will open a tutorial on how to use the plugin

It also has a Game Settings tab. In it, the user can change stuff for the entire server

And finally, the last tab is the Troll tab. It has multiple different trolls the admins can use on players currently online. Each troll must be temporary btw

The plugin also must add new features: If your sword breaks, you die. If you stop holding it in one of your hands, you die.

You spawn with a wooden sword and can rank up through Rank Up Stands, found in the Armor Stands tab. The player can set the requirements needed to rank up and the rank it gives the player in its settings

There is one rank per sword; and there is the same ranking system for spears and axes.

Every player, upon joining for the first time, gets a choice of their weapon. It also puts them in a certain /team There is also variants of each Player FIghter for each weapon, and they must be able to use each one very well.

Kodari AI
KodariJul 3 at 3:47 pm 96
CyvPvP
A full-featured PvP plugin recreating Evbo's CYV experience. Features a /cyvconfig GUI with tabs for: configurable armor stands (standard, PVP run sequences, fire-triggered, rank-up stands), AI player fighters (6 tiers × 3 weapon classes), game settings, a troll toolkit, and a tutorial. Players choose a weapon class on first join, rank up through stands, and die if their weapon breaks or leaves their hands.

Here’s a summary of everything built:


CyvPvP — Full Feature Breakdown

/cyvconfig GUI (OP only)

5-tab main menu: Armor Stands, Spawn Eggs, Tutorial, Game Settings, Trolls


⚔ Armor Stand System

Type
Behavior
Standard
Counts hits → runs a command
PVP Start
Begins a run with an ID + optional timer
PVP Normal
Must be hit during a run (same ID)
PVP End
Completes run if all Normal stands hit → runs command
Fire
Use Flint & Steel on nearby block to activate
Rank Up
Ranks up player if they meet rank/weapon requirements
  • Invulnerable to non-OPs (OPs can break them)

  • Action bar shows hits/required, PVP run timer, and run progress

  • Config Wand (Blaze Rod + PDC): Shift+Right-click to open config GUI

  • Chat-input system for setting hits, command, PVP ID, time limits


🥚 Player Fighters (18 variants)

6 tiers (Wood→Netherite) × 3 weapon classes (Sword / Axe / Spear)

  • Player-head zombie models with full tier-appropriate armor

  • Custom HP scaling per tier (20–60 HP)

  • FighterAI: Random jump attacks to trigger crits (1.5× damage), combo RNG (1.2× damage)

  • Zero drops on death


📈 Rank System

  • Players choose Sword, Axe, or Spear on first join → assigned to a scoreboard team

  • Start at Wood, rank up through stands: Wood → Stone → Iron → Gold → Diamond → Netherite

  • Each rank gets the appropriate weapon item with PDC tags

  • Die if weapon breaks (PlayerItemBreakEvent)

  • Die if you drop/stop holding it (periodic check every 20 ticks + PlayerDropItemEvent)

  • Weapon auto-given on respawn


🎭 Troll Tab (8 trolls, all temporary)

Launch · Blindness · Lightning Strike · Spin · Giant · Tiny · Anvil Rain · Fake Disconnect


⚙ Game Settings

Toggle per-server: Death on Break · Death on Drop · Spawn With Weapon · PvP Enabled

Kodari can make mistakes. Review important code before using.
Files
src
Code
41 2,829
src/main/java/com/kodari/cyvpvp/CyvPvP.java
package com.kodari.cyvpvp;

import com.kodari.cyvpvp.armorstand.ArmorStandListener;
import com.kodari.cyvpvp.armorstand.ArmorStandManager;
import com.kodari.cyvpvp.armorstand.PvpRunManager;
import com.kodari.cyvpvp.command.CyvConfigCommand;
import com.kodari.cyvpvp.fighter.FighterListener;
import com.kodari.cyvpvp.fighter.FighterManager;
import com.kodari.cyvpvp.inventory.gui.GUIListener;
import com.kodari.cyvpvp.inventory.gui.GUIManager;
import com.kodari.cyvpvp.player.PlayerDataManager;
import com.kodari.cyvpvp.player.PlayerListener;
import com.kodari.cyvpvp.rank.RankManager;
import com.kodari.cyvpvp.troll.TrollManager;
import com.kodari.cyvpvp.util.ChatInputManager;
import com.kodari.cyvpvp.util.Keys;
import org.bukkit.plugin.java.JavaPlugin;

public class CyvPvP extends JavaPlugin {
    private GUIManager guiManager;
    private ArmorStandManager armorStandManager;
    private PvpRunManager pvpRunManager;
    private FighterManager fighterManager;
    private RankManager rankManager;
    private PlayerDataManager playerDataManager;
    private PlayerListener playerListener;
    private TrollManager trollManager;
    private ConfigManager configManager;
    private ChatInputManager chatInputManager;

    @Override
    public void onEnable() {
        Keys.init(this);

        configManager = new ConfigManager(this);
        guiManager = new GUIManager();
        playerDataManager = new PlayerDataManager(this);
        armorStandManager = new ArmorStandManager(this);
        pvpRunManager = new PvpRunManager(this);
        rankManager = new RankManager(this, playerDataManager);
        fighterManager = new FighterManager(this, rankManager);
        trollManager = new TrollManager(this);
        chatInputManager = new ChatInputManager(this);
        playerListener = new PlayerListener(this, playerDataManager, rankManager, configManager);

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(playerListener, this);
        getServer().getPluginManager().registerEvents(
            new ArmorStandListener(this, armorStandManager, pvpRunManager, playerDataManager, rankManager), this);
        getServer().getPluginManager().registerEvents(
            new FighterListener(this, fighterManager), this);

        getCommand("cyvconfig").setExecutor(new CyvConfigCommand(this));

        getLogger().info("CyvPvP enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("CyvPvP disabled.");
    }

    public GUIManager getGuiManager() { return guiManager; }
    public ArmorStandManager getArmorStandManager() { return armorStandManager; }
    public PvpRunManager getPvpRunManager() { return pvpRunManager; }
    public FighterManager getFighterManager() { return fighterManager; }
    public RankManager getRankManager() { return rankManager; }
    public PlayerDataManager getPlayerDataManager() { return playerDataManager; }
    public PlayerListener getPlayerListener() { return playerListener; }
    public TrollManager getTrollManager() { return trollManager; }
    public ConfigManager getConfigManager() { return configManager; }
    public ChatInputManager getChatInputManager() { return chatInputManager; }
}