yoshimisu251225

Make a bounty system plugin like DonutSMP name PenBounty: when player /bounty or bounties it will open INVENTORY GUI 6 row name "ʙᴏᴜɴᴛɪᴇѕ (Page %page%/%max_page%)" slot (0 to 44) to player head skin name "&#00ff89%player%" with lore "&fBounty: &7$%amount%" slot 48 to HOPPER name "&#00ff89ѕᴏʀᴛ" with lore1 "%sort_amount%" (%sort_amount% is show the players who has highest bounty amount it show from high to low. this sort when player sort it name and color = "&#00ff89• Amount" but when player change to other sort name and color = "&f• Amount"). and lore2 "%sort_recently%" (%sort_recently% is show the players who just add or set in bounty it show from newest to oldest. this sort when player sort it name and color = "&#00ff89• Recently Set" but when player change to other sort name and color = "&f• Recently Set"). and lore3 "%sort_name%" (%sort_name% is show the players name from A to Z. this sort when player sort it name and color = "&#00ff89• Alphabetically" but when player change to other sort name and color = "&f• Alphabetically"). make the sort color and name we can customize also. slot 49 to SKELETON_SKULL name "&#00ff89ʙᴏᴜɴᴛɪᴇѕ" with lore1 "&fClick to refresh" and lore2 "&r" and lore3 "&7Set a bounty using this:" and lore4 "&7&o/bounty add (player) (amount)" slot 50 to OAK_SIGN name "&#00ff89ѕᴇᴀʀᴄʜ" with lore "&fClick to search" slot 45 to ARROW name "&#00ff89ʙᴀᴄᴋ" with lore "&fClick to go to the previous page" slot 53 to ARROW name "&#00ff89ɴᴇxᴛ" with lore "&fClick to go to the next page"

command with message: /bounty or /bounties - open bounty INVENTORY GUI. /bounty or /bounties add <player> <amount> - allow to add bounty for player. /bounty or /bounties remove <player> - allow to remove bounty player. /bounty or /bounties set <player> <amount> - allow to set bounty player. /bounty or /bounties <player> to view player bounty amount. message action bar and chat "&#007CF9%player% &7has a bounty of &#fc0000$%amount%&7." chat and action bar

  • bounty add message "&7You added &#fc0000$%amount% &7to &#007CF9%player%'s &7bounty." chat and action bar
  • bounty set message "&7You set &#fc0000%amount% &7to &#007CF9%player%'s &7bounty."
  • other players add bounty "&#007CF9%player% &7added &#fc0000$%amount% &7to your bounty." chat and action bar
  • no enough money to add "&cYou don't have enough money." chat and action bar
  • reward "&#00fc00+%amount% &7for killing %player%" chat and action bar
  • player never join server or wrong name "&cThis player does not exits." chat and action bar
  • player not found in search "&cThe user does not have a bounty." chat and action bar
  • no bounty "&cThe user does not have a bounty." chat and action bar
  • toggle alert when on "&7You enabled bounty alert." when off "&7You disabled bounty alert." chat and action bar both message.

confirm bounty INVENTORY GUI: when player execute command /bounty or bounties (add/set) <player> <amount> it will open INVENTORY GUI with 3 rows name "ᴄᴏɴꜰɪʀᴍ ʙᴏᴜɴᴛʏ" in the INVENTORY GUI is has: slot 11 to RED_STAINED_GLASS_PANE name "&fc0000ᴄᴀɴᴄᴇʟ" with lore "&fClick to cancel" slot 13 to PLAYER_HEAD_SKIN name "&#00ff89%player%" with lore "&fYou''re going to set &#0bf52b$%amount%" slot 15 to LIME_STAINED_GLASS_PANE name "&#00ff00ᴄᴏɴꜰɪʀᴍ" with lore "&fClick to add bounty" and lore2 "&7($%amount%)"

sounds: refresh "UI_TOAST_IN" next page and previous page "ITEM_BOOK_PAGE_TURN" (play only when it has but when it not has it will play sound "ENTITY_VILLAGER_NO"). click head and search "BLOCK_DISPENSER_FAIL". click sort "UI_LOOM_SELECT_PATTERN" reward "ENTITY_PLAYER_LEVELUP" volume 1 picth 1.5 no enough money to add and player not found in search and player never join in server or wrong name "ENTITY_VILLAGER_NO". confirm bounty INVENTORY GUI "BLOCK_DISPENSER_FAIL". add success or set "UI_CARTOGRAPHY_TABLE_TAKE_RESULT". when has someone add to bounty "ENTITY_ELDER_GUARDIAN_CURSE" volume 1 picth 0.9

author Kunthean make search for this plugin when player click on search button it will open a sign INVENTORY GUI that allow player to search other players on that sign with line1 of fake sign "" line2 of fake sign "↑↑↑↑↑↑↑↑↑↑↑↑" line3 of fake sign "Search" line4 of fake sign "". make this fake sign when player not enter name or line1 of fake sign is empty it will fast remove sign from player and back to bounty INVENTORY GUI and when player enter player name at line1 but player not found it will back to bounty INVENTORY GUI with message action bar "&cThis user does not have a bounty." and sound "ENTITY_VILLAGER_NO" and fast remove sign from player. and when search player is found it will fast remove sign from player also. make %amout% in this plugin show format like 1K 1M 1B 1T 1Q 1QI or etc. search result INVENTORY GUI title name "ʙᴏᴜɴᴛɪᴇѕ (Page %page%/%max_page%)". when search found it will show player head from slot 0 to 44 and when player search found and player click refresh it will clear the search and back to show all players. make this plugin working chat input formatted number also like /bounty add/set Steve44 10k or 10K or 10000 min bounty = $1 max bounty = 1QI. message "&cThe minimum of bounty is {min}." chat and action bar sounds "ENTITY_VILLAGER_NO". make this plugin we can enable or disable always show previous page and next page button. make this plugin has reload command to reload plugin file. /penbounty reload or /pbounty reload all message in this plugin working with chat and action bar make this plugin working with offline player also like check add set remove etc and make it show offline player name on tab completions also. make it has toggle bounty alert system with placeholder "%penbounty_alert%" status: on = "&#02FB00&lON". off = "&#ff0000&lOFF". this feature is toggle the message when other players add bounty and sound when someone add to bounty. make this feature save data player also like when player quit status ON when rejoin still ON.make this feature working with console command also but no message sent to player just change toggle. command = /togglebountyalert or /bountyalerttoggle make this plugin working with all hex color code gradient color and normal color also. default sort in this plugin = %sort_amount% make all message is chat and action bar. make we can search enchantment like /ah mending /ah eff 1 - 5 /ah unbreakin etc. search result title name "ʙᴏᴜɴᴛɪᴇѕ (Page %page%)" make it working from version 1.20 to 1.21.8 make player can self bounty in this plugin. make sort color and name we can customize it in config also. make we can enable or disable on each message. set last tab completions of this plugin to amount like "1" "1000" "1K" "1M" etc. make can custom last tab completions in config.yml make all INVENTORY GUI in this plugin player can switch or move item in their own inventory but cannot shift + left click or right click or swap items to offhand in their own inventory. make this plugin has file name "guis.yml" that file is allow to customize bounty INVENTORY GUI and confirm bounty INVENTORY GUI like material lore name color slot and more. this plugin working when attacker killed victim it will remove bounty or money from victim and give money to attacker. (working only when player fight with player but if attacker is mob it not working.). optimize everything in the plugin. make we can customize in config.yml of the plugin like message min bounty max bounty enable or disable self bounty sounds enable or disable chat message enable or disable action bar message and more.

Kodari AI
KodariMar 16 at 6:31 am 85,700 (v2)
PenBounty
A comprehensive bounty system plugin for Minecraft 1.20–1.21. Players can place, add, set, view and remove bounties on other players via chest GUIs with paginated player-head displays, customizable sort modes (amount, recent, alphabetical), sign-based search, a confirmation GUI for all bounty actions, and automatic bounty payouts on PvP kills. Economy integration via Vault, per-player alert toggles with PlaceholderAPI support, full hex-colour support, and all text fully configurable via config.yml and guis.yml.
  • 26 files total: framework, managers, GUIs, commands, listeners, utilities, placeholders, and resource files

  • All sounds with custom pitch use XSound.parseSound() → playSound(loc, sound, vol, pitch) pattern

  • SignGUI used for the search overlay; all inventories use the lazy-init GUI framework

The plugin is complete. Here’s a summary of everything built:

Architecture:

  • BountyManager — thread-safe in-memory store backed by data/bounties.yml and data/players.yml, saved after every mutation

  • ConfigManager — loads both config.yml and guis.yml with typed accessors, rebuilt on /penbounty reload

  • Full GUI framework (InventoryHandler → InventoryGUI → GUIManager/GUIListener) with lazy inventory creation, per-slot button consumers, and selective player-inventory click protection

GUIs:

  • BountyListGUI — creates a fresh inventory instance per page/sort/search state; paginated player skulls (slots 0–44), sort cycling (AMOUNT→RECENTLY→NAME), sign-based search via SignGUI, prev/next page with configurable always-show, refresh clears search filter

  • ConfirmBountyGUI — 3-row confirm screen for add/set with cancel returning to list; handles balance check, Vault withdraw, target online notification with alert-check

Commands: /bounty (aliases /bounties), /togglebountyalert (aliases /bountyalerttoggle), /penbounty reload (aliases /pbounty) — all with offline-player tab completions and configurable amount suggestions

Extras: %penbounty_alert% PlaceholderAPI expansion, kill reward listener with custom pitch sounds, &#RRGGBB hex colour support throughout, and number formatting/parsing (1K / 1M / 1B / 1T / 1Q / 1QI)

yoshimisu251225

The compilation failed with this error:

code
Compilation failed with 3 error(s):

ERROR in src/main/java/com/penbounty/inventory/impl/ConfirmBountyGUI.java at line 68: cannot find symbol
            .creator(p -> createPlayerHead(targetName, cm))
                          ^
  symbol: method createPlayerHead(String,ConfigManager)
  location: class ConfirmBountyGUI

ERROR in src/main/java/com/penbounty/inventory/impl/BountyListGUI.java at line 88: cannot find symbol
                .creator(p -> createBountyHead(entry, cm))
                              ^
  symbol: method createBountyHead(BountyEntry,ConfigManager)
  location: class BountyListGUI

ERROR in src/main/java/com/penbounty/inventory/impl/BountyListGUI.java at line 90: cannot find symbol
                    SoundUtil.play(clicker, cm.getSound("click-head", "BLOCK_DISPENSER_FAIL"));
                                   ^
  symbol: variable clicker
  location: class BountyListGUI


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - createPlayerHead(String,ConfigManager)
  - createBountyHead(BountyEntry,ConfigManager)
ACTION: Check method names and signatures

FILES TO INVESTIGATE:
  - src/main/java/com/penbounty/inventory/impl/ConfirmBountyGUI.java
  - src/main/java/com/penbounty/inventory/impl/BountyListGUI.java

Please fix this error by creating a new artifact with the corrected code.

Kodari can make mistakes. Review important code before using.
Files
src
manifest.kod
pom.xml
Code
24 1,820
src/main/java/net/theandev/PenLeaderboards.java
package net.thean;

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

public class PenLeaderboards extends JavaPlugin {

    private static PenLeaderboards instance;
    private ConfigManager configManager;
    private DataManager dataManager;
    private LeaderboardManager leaderboardManager;
    private VaultManager vaultManager;
    private GuiManager guiManager;

    @Override
    public void onEnable() {
        instance = this;

        saveDefaultConfig();
        saveResource("menus.yml", false);

        this.configManager = new ConfigManager(this);
        this.dataManager = new DataManager(this);
        this.vaultManager = new VaultManager(this);
        this.leaderboardManager = new LeaderboardManager(this);
        this.guiManager = new GuiManager(this);

        getCommand("leaderboards").setExecutor(new LeaderboardCommand(this));
        getCommand("baltop").setExecutor(new LeaderboardCommand(this));
        getCommand("penleaderboards").setExecutor(new PenLeaderboardsCommand(this));

        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new BlockListener(this), this);
        Bukkit.getPluginManager().registerEvents(new EntityListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GuiListener(this), this);

        getLogger().info("PenLeaderboards enabled successfully!");
    }

    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveAll();
        }
        getLogger().info("PenLeaderboards disabled.");
    }

    public void reload() {
        reloadConfig();
        configManager.reload();
        dataManager.reload();
        leaderboardManager.reload();
    }

    public static PenLeaderboards getInstance() { return instance; }
    public ConfigManager getConfigManager() { return configManager; }
    public DataManager getDataManager() { return dataManager; }
    public LeaderboardManager getLeaderboardManager() { return leaderboardManager; }
    public VaultManager getVaultManager() { return vaultManager; }
    public GuiManager getGuiManager() { return guiManager; }
}