Build a standalone Java Paper Minecraft 1.21.11 Battle Royale minigame plugin from scratch, using a compatible Paper API/version available to the project. Supply build configuration, plugin.yml, defaults, persistent arena configuration and BR-only stats, installation and command documentation. User supplies existing map: never generate worlds, build tower, or depend on MoggMC-Cache/Hoplite; no lobby/server-wide systems. Implement as much of the following complete scope as possible, with honest documentation of limitations and no invented APIs: independent multiple arena state machines WAITING/STARTING/IN_GAME/ENDING/RESETTING, queues/capacity/countdowns/configurable individual cages with safe release and decorative flag, participant restoration, disconnect/death/spectator handling, immediate victory on second-to-last elimination, kills/final kills/wins/levels and leaderboards, live HUD, itemless minimap where feasible and locator-bar disabling; configured randomized weighted rarity chest loot excluding special recipe items; configured main feast chest locations outside supplied tower and protected area, manually configured safe mini-feast locations without terrain destruction; truly circular smoothly shrinking phased border with particle visualization and outside damage; special weapons Rupture (lightning rain, slowness/darkness, 2.5 damage over 2.78s, exclude owner), Hunter's Bow (random debuffs, returning thrown bow 1 heart/10s), Celestial Fan (wind push 10s and 5x5 levitation zone 10s/50s), Trident of the Tides (loyalty return and dash), Twilight Scepter (fireball 5s, sonic boom 15s), Sculk Blade (recipe diamond sword+scepter+shrieker, blindness 5s and owner-allied Warden 3min/120s); durability costs and configurable damage/cooldowns; Wind Steps equipment and full Mystic Dragon armor projectile repulsion/high damage reflection, optional resource pack model IDs. BR-scoped pre-match cosmetic hotbar selector, kill/projectile/pet effects, four requested victory animations (warden biome transformation, TNT rain, dragon ride, flying pig glass trail) with reversible or non-destructive visual effects and three kill animations (exploding head, fire tornado, witch/lava), no interference with progression. Allow drops and permitted mining, prevent natural hostile mob spawning in arena while allowing allied Warden. Restore temporary changes/entities/chests/player state on reset, without world regeneration. Commands /play battle royale <arena_id>, /spec battle royale <arena_id>, /timer and authorized admin commands for arena/world/cages/spawns/feast/minifeast/chests/border/settings. Clearly document commands, permissions, configuring map regions and gameplay limitations. Do not include Glacial Heart or Abyss Blade. Prioritize functional lifecycle and safe restoration; do not claim runtime testing. Implement feature code only, no tests.

Kodari AI
KodariNov 10 at 11:39 pm 21
BattleRoyaleArena
A standalone Paper Minecraft 1.21.11 Battle Royale minigame plugin with independent arena state machines (WAITING/STARTING/IN_GAME/ENDING/RESETTING), configurable queues and cages, participant restoration, spectator handling, and immediate victory on second-to-last elimination. Features randomized weighted chest loot, circular shrinking border with particle visualization, special weapons (Rupture, Hunter's Bow, Celestial Fan, Trident of the Tides, Twilight Scepter, Sculk Blade), full Mystic Dragon armor, BR-scoped cosmetic selectors, victory and kill animations, persistent arena configuration, and BR-only stats with leaderboards. Includes live HUD, minimap, commands for arena management, and comprehensive documentation.
  1. Set up the Paper 1.21.11 plugin, defaults, persistent arena data, and documentation.

  2. Implement isolated arena lifecycles, player/block restoration, queues, combat, loot, borders, and BR-only stats.

  3. Add commands, cosmetics, special items, and clearly document API/gameplay limitations.

Built a standalone Java Paper 1.21.11 Battle Royale plugin with Gradle configuration, defaults, persistent arena settings, BR-only stats, and setup/command documentation.

It includes independent arena state machines, queues and countdown cages, participant restoration, elimination and victory handling, weighted chest loot, circular phased borders, HUD, special weapons, and cosmetics. Player commands include /play battle royale <arena_id>, /spec battle royale <arena_id>, /timer, and /br; arena administration requires battleroyale.admin.

The README documents limitations: the HUD is directional rather than a rendered minimap, the locator bar is not disabled, and some victory effects are visual interpretations. The Twilight Scepter remains a weighted special-weapon drop so the Sculk Blade recipe is usable; diamond swords and shriekers are excluded from the loot table. No runtime testing was performed.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
17 2,816
src/main/java/com/kodari/battleroyale/BattleRoyalePlugin.java
package com.kodari.battleroyale;

import com.kodari.battleroyale.combat.WeaponManager;
import com.kodari.battleroyale.cosmetic.AnimationManager;
import com.kodari.battleroyale.data.StatsManager;
import com.kodari.battleroyale.game.ArenaManager;
import com.kodari.battleroyale.listener.GameListener;
import com.kodari.battleroyale.loot.LootManager;
import com.kodari.battleroyale.command.BRCommand;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class BattleRoyalePlugin extends JavaPlugin {
    private ArenaManager arenas;
    private StatsManager stats;
    private LootManager loot;
    private WeaponManager weapons;
    private AnimationManager animations;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        if (!getDataFolder().exists()) getDataFolder().mkdirs();
        stats = new StatsManager(this);
        weapons = new WeaponManager(this);
        loot = new LootManager(this);
        animations = new AnimationManager(this);
        arenas = new ArenaManager(this);
        weapons.registerRecipe();
        Bukkit.getPluginManager().registerEvents(new GameListener(this), this);
        BRCommand command = new BRCommand(this);
        getCommand("play").setExecutor(command);
        getCommand("spec").setExecutor(command);
        getCommand("timer").setExecutor(command);
        getCommand("br").setExecutor(command);
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            arenas.tick();
            animations.tick();
        }, 20L, 20L);
        getLogger().info("BattleRoyale enabled. Configure an existing map with /br help.");
    }

    @Override
    public void onDisable() {
        if (arenas != null) arenas.shutdown();
        if (stats != null) stats.save();
    }

    public ArenaManager arenas() { return arenas; }
    public StatsManager stats() { return stats; }
    public LootManager loot() { return loot; }
    public WeaponManager weapons() { return weapons; }
    public AnimationManager animations() { return animations; }
}