hydrolysedmc

Make a plugin which is a bounty plugin, When a player kills someone they get a bounty of 1 kill which can stack till 20 kills and if u kill the player with a bounty of 1 kill it gives u 3 diamonds up till 20 kills meaning 60 diamonds and u can see the bounty that the player has by running the command /bounty and the plugin has to be on the version 1.21.11 paper

Kodari AI
KodariJul 1 at 6:31 am 1

I’ll create a bounty plugin for Paper 1.21.1 where players accumulate kill bounties that reward diamonds to their slayers.

BountyPlugin
A player bounty plugin for Paper 1.21.1 where each kill increases the killer's bounty by 1 (up to 20). Players with a bounty reward 3 diamonds per bounty level when killed. Features persistent bounty storage, configurable limits, and a /bounty command to check any player's current bounty value.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 282
src/main/java/com/bountyplugin/BountyPlugin.java
package com.bountyplugin;

import com.bountyplugin.command.BountyCommand;
import com.bountyplugin.listener.BountyListener;
import com.bountyplugin.manager.BountyManager;
import org.bukkit.plugin.java.JavaPlugin;

public class BountyPlugin extends JavaPlugin {

    private BountyManager bountyManager;

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

        this.bountyManager = new BountyManager(this);
        bountyManager.loadBounties();

        getServer().getPluginManager().registerEvents(new BountyListener(this), this);

        BountyCommand command = new BountyCommand(this);
        getCommand("bounty").setExecutor(command);
        getCommand("bounty").setTabCompleter(command);

        getLogger().info("BountyPlugin enabled.");
    }

    @Override
    public void onDisable() {
        if (bountyManager != null) {
            bountyManager.saveBounties();
        }
        getLogger().info("BountyPlugin disabled.");
    }

    public BountyManager getBountyManager() {
        return bountyManager;
    }
}