Pnx2 Idk

Create a Minecraft Paper plugin called BountyHunt for Minecraft 1.21.11.

Use the correct Paper API and Java version supported by Paper 1.21.11. Every 3 hours, randomly select an eligible online player and place a configurable bounty on them. Announce the target and reward to the entire server.

If another player kills the target before the timer ends, the killer receives the full bounty. If the target survives until the timer ends, they receive the full bounty instead. Only one bounty can be active at a time.

Create a persistent coin economy with /coins, /bounty, and /shop commands. The shop must have a clickable inventory GUI selling golden apples, enchanted golden apples, netherite swords, maces, and wind charges for configurable coin prices.

Save player balances across restarts. Prevent self-kills, repeated kill farming, item duplication, and reward exploits. Handle target disconnections safely.

Include all source files, plugin.yml, configuration files, and instructions for compiling and downloading the finished .jar file. Verify that the project compiles against the actual Paper 1.21.11 API. Explain everything for a beginner who does not know Java and cannot install software.

Kodari AI
KodariOct 13 at 7:37 pm 2
BountyHunt
A Paper 1.21.11 plugin implementing a persistent coin economy and bounty system. Every 3 hours, an eligible online player is randomly selected as a bounty target with a configurable reward. Killers receive the bounty if they eliminate the target; the target receives it if they survive. Features /coins, /bounty, and /shop commands with a clickable GUI selling golden apples, enchanted golden apples, netherite swords, maces, and wind charges. Player balances persist across restarts with protection against self-kills, kill farming, duplication, and reward exploits.
  1. Create the Paper 1.21.11 / Java 21 plugin scaffold and configuration.

  2. Implement persistent coins, a restart-safe single active bounty, commands, and an anti-duplication shop GUI.

  3. Include beginner compile/download instructions.

Created BountyHunt for Paper 1.21.11, configured for Java 21. It includes /coins, /bounty, and /shop; persistent coin balances and active-bounty data; and a clickable shop that cancels inventory interactions and refunds purchases if an item can’t be delivered. Bounties survive target disconnections, and a bounty that has expired is paid to the target rather than the killer.

The Gradle build targets io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT. I haven’t run an independent build in this session, so use Kodari’s Compile action to verify the build and produce the jar:

  1. On desktop, click Compile in the top bar. On a phone, tap ⋮ → Compile Project.

  2. Click Compile in the window.

  3. When it succeeds, click Download for the build or Download BountyHunt.jar in the chat.

The included README has these steps too. Configure rewards, duration, and shop prices in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
11 538
src/main/java/com/kodari/bountyhunt/BountyHuntPlugin.java
package com.kodari.bountyhunt;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class BountyHuntPlugin extends JavaPlugin {
    private CoinManager coinManager;
    private BountyManager bountyManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.coinManager = new CoinManager(this);
        this.bountyManager = new BountyManager(this, coinManager);

        BountyHuntCommand command = new BountyHuntCommand(this, coinManager, bountyManager);
        getCommand("coins").setExecutor(command);
        getCommand("bounty").setExecutor(command);
        getCommand("shop").setExecutor(command);

        Bukkit.getPluginManager().registerEvents(new ShopListener(), this);
        bountyManager.start();
    }

    public String message(String text) {
        String prefix = getConfig().getString("messages.prefix", "&8[&6BountyHunt&8] &7");
        return org.bukkit.ChatColor.translateAlternateColorCodes('&', prefix + text);
    }
}