errorx.net

FxBounty — Premium Lightweight Bounty Plugin

Create a premium, lightweight and fully configurable Minecraft bounty plugin named FxBounty.

The plugin should have a clean premium GUI similar to a modern Auction plugin, with player-head bounty entries, pagination, sorting/filtering, persistent bounty data, automatic bounty claiming on kills, and fully configurable messages/sounds.

---

Plugin Requirements

  • Plugin Name: "FxBounty"
  • Lightweight and optimized
  • Modern Paper/Spigot compatible
  • Economy handled through Vault
  • Hex colors supported
  • RGB colors supported
  • Legacy colors supported
  • Fully configurable through "config.yml"
  • No unnecessary dependencies
  • Persistent bounty storage
  • Use UUIDs internally
  • Prevent all money/item duplication exploits
  • Prevent duplicate bounty claims

---

COMMANDS

Open Bounty GUI

/bounty

Opens the main Bounty GUI.

Add Bounty

/bounty add <player_name> <money_amount>

Example:

/bounty add Steve 50000

The player pays the specified amount and places a bounty on Steve.

Remove Bounty

/bounty remove

This should open a Remove Bounty GUI.

The GUI must show only the bounties that the player has personally created.

Clicking a bounty entry removes that bounty and refunds the money to the creator.

Bounties

/bounties

Opens the same main Bounty GUI.

Reload

/bounty reload

Reloads the configuration.

Permission:

fxbounty.reload

---

BOUNTY LIMITS

bounty: min-amount: 1000 max-amount: 1000000000

Minimum:

1,000

Maximum:

1,000,000,000

Do not allow amounts outside these limits.

---

MONEY FORMAT

Use a premium compact money formatter.

Support:

1000 → 1k 10000 → 10k 100000 → 100k 1000000 → 1M 10000000 → 10M 100000000 → 100M 1000000000 → 1B 10000000000 → 10B 100000000000 → 100B 1000000000000 → 1T

The formatter must support values from:

1k → 1T

Use the formatted value everywhere in GUI and messages.

Also allow players to enter compact amounts such as:

1k 10k 1M 50M 1B 1T

---

MAIN BOUNTY GUI

GUI rows:

5

Total slots:

[0-44]

Slot numbering must start from:

0

not 1.

GUI title should be configurable:

gui-title: "&8☀ Bounty | Dashboard"

---

BLACK GLASS BORDER

Material:

BLACK_STAINED_GLASS_PANE

Slots:

[0-9] [17-18] [26-27] [35-38] [42-44]

These slots are reserved for the GUI border.

Do not place bounty heads in these slots.

---

NEXT PAGE

next-page: material: LIME_STAINED_GLASS_PANE slot: 39 display-name: "&#00FF64&lNEXT PAGE" lore: - "&7Bounty" - "" - "&#FFD800▶ &l&nCLICK &#FFD800to Go"

Clicking this item opens the next page.

---

PREVIOUS PAGE

previous-page: material: RED_STAINED_GLASS_PANE slot: 41 display-name: "&#FF2E2E&lPREVIOUS PAGE" lore: - "&7Bounty" - "" - "&#FFD800▶ &l&nCLICK &#FFD800to Go"

Clicking this item opens the previous page.

---

BOUNTY FILTER

Material:

BELL

Slot:

40

Display name:

&#FF541A&lBOUNTY FILTER

Base lore:

lore: - "&7Bounty" - "" - "&#FF541ASelection:" - "" - "&8● &#FFD800Latest to oldest" - "&8● &7Oldest to latest" - "&8● &7Higher to lower" - "&8● &7Lower to higher" - "" - "&#FFD800▶ &l&nCLICK &#FFD800to Change"

IMPORTANT FILTER BEHAVIOR

The filter must work exactly like the Auction sorting/filter system.

When the player clicks the BOUNTY FILTER:

  1. Change to the next sorting mode.
  2. Refresh the GUI.
  3. Change the lore.
  4. Show the currently selected filter in "&#FFD800".
  5. Show all unselected filters in "&7".
  6. Keep the selected filter while navigating between pages.

Example:

Selected: Latest to oldest

&8● &#FFD800Latest to oldest &8● &7Oldest to latest &8● &7Higher to lower &8● &7Lower to higher

Selected: Oldest to latest

&8● &7Latest to oldest &8● &#FFD800Oldest to latest &8● &7Higher to lower &8● &7Lower to higher

Selected: Higher to lower

&8● &7Latest to oldest &8● &7Oldest to latest &8● &#FFD800Higher to lower &8● &7Lower to higher

Selected: Lower to higher

&8● &7Latest to oldest &8● &7Oldest to latest &8● &7Higher to lower &8● &#FFD800Lower to higher

Default filter:

Latest to oldest

---

FILTER LOGIC

Latest to oldest

Newest bounty first.

Oldest to latest

Oldest bounty first.

Higher to lower

Highest bounty amount first.

Lower to higher

Lowest bounty amount first.

---

BOUNTY ITEM

Material:

PLAYER_HEAD

The head must display the actual Minecraft skin of the player who currently has the bounty.

Example:

If Steve has a bounty:

PLAYER_HEAD = Steve's actual skin

Do not use a generic player head.

IMPORTANT

There should be NO configured slot for the Bounty Item.

The plugin must automatically place bounty heads into every available slot inside the border.

Only empty usable slots should be used.

Display name:

&#FFD800%player%

Lore:

lore: - "&7Bounty" - "" - "&fType: &#FFD800Money" - "&fAmount: &#FFD800%price%"

Placeholders:

%player% %price%

"%price%" must use the configured money formatter.

---

AVAILABLE BOUNTY SLOTS

Bounty heads can only use slots that are not occupied by:

  • Black glass
  • Next page
  • Previous page
  • Filter
  • Other GUI buttons

The plugin should automatically calculate available slots.

Do not hardcode bounty slots.

---

BOUNTY CREATION SYSTEM

When:

/bounty add <player> <amount>

is executed:

  1. Check target player.
  2. Prevent placing a bounty on yourself.
  3. Check minimum amount.
  4. Check maximum amount.
  5. Check player's balance.
  6. Withdraw the money.
  7. Create the bounty.
  8. Save the bounty.
  9. Send the bounty-add message.
  10. Send ActionBar if enabled.
  11. Play bounty-add sound.
  12. Send broadcast if enabled.
  13. Refresh active bounty GUIs.

---

MULTIPLE BOUNTIES ON ONE PLAYER

Multiple players must be able to place bounties on the same target.

Example:

Alex → Steve → $50,000 Bob → Steve → $25,000 John → Steve → $100,000

Steve's GUI entry should show the total:

$175,000

The GUI must show one player head per target, not one head for every contributor.

When Steve is killed, the killer receives the entire active bounty amount.

All individual bounty contributions on Steve are then removed.

---

BOUNTY CLAIM

If a player kills a player who currently has a bounty:

Killer receives the complete bounty.

Example:

Steve bounty = $500,000

Alex kills Steve.

Alex receives $500,000.

After successful claim:

  • Pay the killer.
  • Remove the target's entire bounty.
  • Remove all contributor entries for that target.
  • Remove the target's head from the Bounty GUI.
  • Save data.
  • Send claim message.
  • Play bounty-claimed sound.
  • Send optional claim broadcast.
  • Refresh all open bounty GUIs.

Prevent:

  • Self-kills
  • Duplicate claims
  • Double payment
  • Claiming the same bounty twice
  • Invalid death events

---

BOUNTY REMOVE

Command:

/bounty remove

Opens a GUI using the same general GUI style.

This GUI must show only the bounties created by the player who executed the command.

Example:

Steve → $50,000 Alex → $100,000 Bob → $10,000

Only these entries should be displayed.

Clicking an entry:

  1. Remove that specific bounty contribution.
  2. Refund its amount to the creator.
  3. Save the updated data.
  4. Remove/update the GUI entry.
  5. Send the remove message.
  6. Send ActionBar if enabled.
  7. Play remove sound.

If other players have also placed bounties on the same target, removing your bounty must not remove their contributions.

Example:

Alex → Steve → $50,000 Bob → Steve → $100,000

If Alex removes his bounty:

Alex's $50,000 → removed/refunded Bob's $100,000 → remains

Steve's main GUI entry should now show:

$100,000

---

REMOVE GUI BOUNTY ITEM

Use:

PLAYER_HEAD

Show the actual target player's skin.

Display name:

&#FFD800%player%

Lore:

&7Bounty

&fType: &#FFD800Money

&fAmount: &#FFD800%price%

&#FFD800▶ &l&nCLICK &#FFD800to Remove

The remove GUI should also use automatic available slots.

---

PREFIX

prefix: "&#FF541A&lBOUNTY &8▶"

---

MESSAGES

All messages must be configurable.

Bounty Add

bounty-add: "%prefix% &fYou have successfully set a Bounty on &#FFD800%player% &fof &#FFD800%amount%"

Placeholders:

%prefix% %player% %amount%

---

Bounty Remove

bounty-remove: "%prefix% &fYou have successfully removed the Bounty from &#FFD800%player%"

---

Bounty Claim

bounty-claim: "%prefix% &#00FF64You have successfully claimed the Bounty of &#FFD800%player% &fand received &#FFD800%amount%"

Here:

%player% = player whose bounty was claimed %amount% = total claimed bounty

---

Reload

bounty-reload: "%prefix% &#00FF64Configuration successfully reloaded"

---

ACTIONBAR SETTINGS

Bounty add and remove should optionally appear in ActionBar.

actionbar: bounty-add: false bounty-remove: false

Default:

false

If "true", send the corresponding message in ActionBar.

If "false", only send it in chat.

---

BOUNTY CREATE BROADCAST

Default:

broadcast: bounty-create: enabled: false chat: true actionbar: true

Message:

message: "%prefix% &#FFD800%player% &fhas set a Bounty on &#FFD800%target% &fof &#FF541A%amount%"

IMPORTANT:

%player% = player who created the bounty %target% = player who received the bounty %amount% = bounty amount

If:

enabled: false

do not broadcast anything.

If enabled, support:

  • Chat
  • ActionBar

independently.

---

BOUNTY CLAIM BROADCAST

Default:

broadcast: bounty-claim: enabled: false chat: true actionbar: true

Message:

message: "%prefix% &#FFD800%player% &fclaimed the Bounty of &#FFD800%target% &fand received &#FF541A%amount%"

Placeholders:

%player% = killer %target% = bounty target %amount% = claimed bounty

---

SOUNDS

All sounds must be configurable.

GUI Click

click-sound: UI_BUTTON_CLICK

Bounty Add

bounty-add: ENTITY_EXPERIENCE_ORB_PICKUP

Bounty Remove

Use an item pickup sound:

bounty-remove: ENTITY_ITEM_PICKUP

Bounty Claimed

Use the Minecraft advancement/toast-style sound associated with obtaining the Netherite Armor advancement:

bounty-claimed: UI_TOAST_CHALLENGE_COMPLETE

All sound names must be configurable.

---

GUI CLICK SOUND

Play:

UI_BUTTON_CLICK

when clicking:

  • Next page
  • Previous page
  • Bounty filter
  • Bounty remove item
  • Other clickable GUI buttons

---

DATA STORAGE

Store bounty data persistently.

Use UUIDs instead of names internally.

Example structure:

bounties: target-uuid: contributors: creator-uuid: amount: 50000 created-at: 123456789 creator2-uuid: amount: 100000 created-at: 123456999

The plugin must correctly restore all data after:

  • Server restart
  • Plugin reload
  • Player logout
  • Player rejoin

---

GUI SAFETY

Players must NOT be able to:

  • Take GUI items
  • Shift-click GUI items
  • Drag items into GUI
  • Drop GUI items
  • Number-key swap GUI items
  • Duplicate bounty items
  • Manipulate player heads

Handle all relevant inventory events.

---

PLACEHOLDERAPI

Add PlaceholderAPI support.

At minimum provide:

%fxbounty_amount%

Returns the player's current total bounty.

%fxbounty_has_bounty%

Returns:

true false

Use proper PlaceholderAPI registration.

---

CONFIGURATION

Everything important should be configurable:

  • Prefix
  • GUI title
  • GUI materials
  • GUI slots
  • GUI lore
  • Filter lore
  • Selected filter color
  • Unselected filter color
  • Bounty item
  • Messages
  • ActionBars
  • Broadcasts
  • Sounds
  • Minimum bounty
  • Maximum bounty
  • Money formatting
  • Permissions

---

FINAL DESIGN GOAL

FxBounty should feel like a premium server plugin, not a basic Skript-style bounty system.

The final plugin must provide:

  • Premium 5-row GUI
  • Exact slots "0-44"
  • Black glass border
  • Automatic player-head placement
  • Real Minecraft player skins
  • Pagination
  • Auction-style filter system
  • Dynamic filter status/lore
  • Latest → oldest sorting
  • Oldest → latest sorting
  • Higher → lower sorting
  • Lower → higher sorting
  • Multiple contributors per target
  • Automatic bounty claiming on kill
  • Automatic GUI removal after claim
  • Individual bounty removal/refund
  • Persistent data
  • Money formatting from "1k" up to "1T"
  • Configurable ActionBars
  • Configurable broadcasts
  • Configurable sounds
  • Hex/RGB/Legacy color support
  • Vault economy support
  • PlaceholderAPI support
  • Strong anti-duplication and anti-exploit protection

The plugin should be lightweight, smooth, optimized and production-ready.

Kodari AI
KodariSep 23 at 2:51 am 2
FxBounty
Premium lightweight bounty plugin with a modern 5-row GUI featuring player-head entries, pagination, and auction-style filtering. Supports multiple contributors per target with persistent UUID-based storage, automatic bounty claiming on kills, individual bounty removal with refunds, Vault economy integration, compact money formatting from 1k to 1T, configurable messages/actionbars/broadcasts/sounds, hex and RGB color support, PlaceholderAPI expansion, and comprehensive anti-duplication protection.
  1. Create the FxBounty plugin scaffold, configuration, and persistent bounty/economy service.

  2. Add the paginated GUIs, commands, kill claims, and inventory protections.

  3. Add optional PlaceholderAPI support and configurable messages, formatting, sounds, and broadcasts.

Created the FxBounty project scaffold with configurable bounty GUIs, Vault economy handling, persistent UUID-based contributions, commands, kill claims, compact amounts, and optional PlaceholderAPI placeholders. Vault is a required plugin dependency; PlaceholderAPI is optional.

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code