P
📎 1 file 1,380 chars
📄
pasted-code-1773791078012.txt
txt 1 lines
▶
Bounty Ascension  Every player has a Bounty Level that determines their power on the server, starting at 10 bounty while 0 bounty gives no perks. A public leaderboard (/bounty) shows all players ranked by bounty, making strong players visible targets. Killing a player steals 50% of their bounty, and if a player drops below 10 bounty, it resets to 0 and all perks are removed. Every 10 bounty grants +5% potion duration and +1 permanent heart, stacking up to the maximum of 100 bounty, where players reach 20 hearts and become Ascended, gaining permanent Strength II, Speed I, and Fire Resistance, but also an infinite glowing effect that permanently reveals them. Players can also earn bounty through /quest, which gives 3 daily quests (+2 bounty each) and 1 weekly quest (+10 bounty) with objectives ranging from collecting items to defeating assigned players. A team system prevents bounty farming, meaning quests and bounty rewards cannot target or be earned from teammates or allies. Any form of alt account abuse or bounty farming results in a permanent ban. The system creates constant risk vs reward gameplay where stronger players become bigger targets and power is always transferable through combat and progression. If you get kills at 100 bounty you get a holdable item called bounty which you will also be able to do /withdrawl [amount] and keep it in your inventory
Kodari AI
KodariMar 17 at 11:48 pm 26,389 (v2)

I’ll create a comprehensive Bounty Ascension plugin with a bounty system, quests, team mechanics, and power progression.

BountyAscension
A competitive progression plugin where players build power through bounty levels. Kill players to steal 50% of their bounty, complete daily and weekly quests for rewards, and reach Ascended status at 100 bounty with permanent buffs and glowing. Features team system to prevent farming, leaderboard tracking, and bounty tokens as holdable items. Every 10 bounty grants +1 heart and +5% potion duration, creating high-risk PvP gameplay where stronger players become visible targets.

Now I’ll create the listener classes:

Now I’ll create the command classes:

Now I’ll create the GUI framework classes:

Now I’ll create the GUI implementations:

Finally, I’ll create the ItemBuilder utility class:

The Bounty Ascension plugin is now complete with all core features: bounty system with stealing mechanics, quest system with daily/weekly quests, team system to prevent farming, GUI-based leaderboard and quest viewer, perk system with health and potion duration bonuses, ascension status at 100 bounty, bounty token withdrawal system, and full XSeries cross-version compatibility.

P

how to claim bounty

P

how to claim bounty

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
27 1,845
src/main/java/com/example/bountyascension/BountyAscension.java
package com.example.bountyascension;

import com.example.bountyascension.command.BountyCommand;
import com.example.bountyascension.command.QuestCommand;
import com.example.bountyascension.command.TeamCommand;
import com.example.bountyascension.command.WithdrawCommand;
import com.example.bountyascension.inventory.gui.GUIListener;
import com.example.bountyascension.inventory.gui.GUIManager;
import com.example.bountyascension.listener.PlayerDeathListener;
import com.example.bountyascension.listener.PlayerJoinListener;
import com.example.bountyascension.listener.PerkListener;
import com.example.bountyascension.listener.QuestProgressListener;
import com.example.bountyascension.manager.BountyManager;
import com.example.bountyascension.manager.PerkManager;
import com.example.bountyascension.manager.QuestManager;
import com.example.bountyascension.manager.TeamManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class BountyAscension extends JavaPlugin {
    private BountyManager bountyManager;
    private QuestManager questManager;
    private TeamManager teamManager;
    private PerkManager perkManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.teamManager = new TeamManager(this);
        this.bountyManager = new BountyManager(this);
        this.perkManager = new PerkManager(this);
        this.questManager = new QuestManager(this);
        this.guiManager = new GUIManager();
        
        this.bountyManager.loadData();
        
        registerListeners();
        registerCommands();
        
        startAutoSave();
        
        getLogger().info("BountyAscension has been enabled!");
    }

    @Override
    public void onDisable() {
        this.bountyManager.saveData();
        getLogger().info("BountyAscension has been disabled!");
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PerkListener(this), this);
        Bukkit.getPluginManager().registerEvents(new QuestProgressListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
    }
    
    private void registerCommands() {
        getCommand("bounty").setExecutor(new BountyCommand(this));
        getCommand("quest").setExecutor(new QuestCommand(this));
        getCommand("withdraw").setExecutor(new WithdrawCommand(this));
        getCommand("team").setExecutor(new TeamCommand(this));
    }
    
    private void startAutoSave() {
        Bukkit.getScheduler().runTaskTimerAsynchronously(this, () -> {
            bountyManager.saveData();
        }, 6000L, 6000L);
    }
}