Documentation

CrystalBounties — Player Bounties

Vault-powered player bounties for Paper with a leaderboard GUI, anti-farm rules, PlaceholderAPI placeholders and SQL storage.

This is a preserved product reference. Check the current listing for release-specific dependencies and support. Ask for help.

Reference information

Guide version: v1.0.0 Supported versions: Paper 1.21.x (compiled against 1.21.4) · Java 21 Guide updated: November 2026

Overview

CrystalBounties lets players put money on other players with /bounty <player> <amount>. Whoever kills the target collects the full accumulated bounty through Vault. It is designed for Survival, SMP, Lifesteal and BoxPvP servers. • Stackable bounties with a contributor list and configurable tax • Leaderboard GUI, top 10 in chat and per-player history • Anti-farm rules: same IP, pair cooldowns, claim windows, Creative killers and blocked worlds • Pending payouts that retry automatically when the economy rejects a deposit • Server-wide broadcasts and sounds • MiniMessage, legacy & codes and hex colours in every message • PlaceholderAPI placeholders and a developer API with events • SQLite, MySQL, MariaDB or PostgreSQL storage
RequirementSupported value
Server softwarePaper 1.21.x (api-version 1.21); Spigot and Folia are not supported
Java21
RequiredVault plus a Vault-compatible economy plugin such as EssentialsX Economy
OptionalPlaceholderAPI
StorageSQLite (default), MySQL, MariaDB or PostgreSQL

Installation

1. Stop the server and put the CrystalBounties JAR in plugins/, next to Vault and your economy plugin. Install only one CrystalBounties JAR. 2. Start the server once; plugins/CrystalBounties/ is created with config.yml, messages.yml, gui.yml and bounties.db. 3. Edit the files and restart, or run /bounty reload. Storage changes always need a restart. The SQLite and MySQL drivers come with Paper. The MariaDB and PostgreSQL drivers are downloaded by Paper from Maven Central on first start, so the server needs internet access once. Changing storage.type does not migrate existing data.
plugins/CrystalBounties/
├── config.yml     storage, limits, tax, anti-farm, sounds, formatting
├── messages.yml   every chat message
├── gui.yml        leaderboard menu layout and items
└── bounties.db    SQLite database (default)

Placing & Claiming

Placing a bounty The amount is withdrawn from the contributor. A tax (bounty.tax-percent, default 5%) is removed from each contribution and nobody receives it, so with the default tax a 1,000 contribution adds 950. The minimum applies to each gross contribution and the maximum to the accumulated total. Offline players who have joined before can be targeted; you cannot target yourself. If a name matches a subcommand, use /bounty add <player> <amount>. Claiming A bounty is claimed when the target is killed by another player. The claim is checked against the anti-farm rules, recorded in one database transaction and paid to the killer through Vault. If the economy rejects the deposit, the payout stays pending and is retried every time the killer joins. Deaths without a player killer do nothing; the bounty stays. Anti-farm rules Claims are denied when killer and victim share an IP, when the same pair claimed within anti-farm.pair-cooldown-seconds, when the pair exceeds anti-farm.max-claims-per-window, when the killer is in Creative, or in a world listed in anti-farm.blocked-worlds. Self-kills never pay out. crystalbounties.bypass.limit skips the minimum, maximum and anti-farm checks except the self-kill rule.
/bounty Steve 1000        # pay 1,000 into the bounty on Steve
/bounty add Steve 250.50  # same, with decimals
/bounty info Steve
/bounties

Commands

/bounty requires crystalbounties.use (everyone) and has the alias /cbounty.
CommandPermission (default)Purpose
/bounty <player> <amount>crystalbounties.create (everyone)Pay into a bounty on a player
/bounty add <player> <amount>crystalbounties.create (everyone)Same as above
/bounty info <player>crystalbounties.info (everyone)Value, rank, contributor count, start time and top 5 contributors
/bounty topcrystalbounties.top (everyone)Top 10 active bounties in chat
/bounty history [player]crystalbounties.info (everyone)History of bounties on you or a player (console: global log)
/bountiescrystalbounties.gui (everyone)Open the leaderboard GUI
/bounty set <player> <amount>crystalbounties.admin.set (OP)Set a bounty to an exact value
/bounty addadmin <player> <amount>crystalbounties.admin.set (OP)Add system-funded value without tax or limit
/bounty remove <player>crystalbounties.admin.remove (OP)Delete a bounty (no refund to contributors)
/bounty reloadcrystalbounties.admin.reload (OP)Reload config, messages and GUI
/bounty debugcrystalbounties.admin.debug (OP)Ready state, cache size, pending payouts and database queue

Permissions

PermissionDefaultPurpose
crystalbounties.useEveryoneUse /bounty
crystalbounties.createEveryonePlace bounties
crystalbounties.infoEveryoneBounty info and history
crystalbounties.topEveryoneTop 10 in chat
crystalbounties.guiEveryoneLeaderboard GUI
crystalbounties.adminOperatorAll four admin permissions
crystalbounties.admin.set · remove · reload · debugOperatorIndividual admin commands
crystalbounties.bypass.cooldownOperatorSkip the placement cooldown
crystalbounties.bypass.limitOperatorSkip minimum, maximum and anti-farm checks (except self-kill)

Configuration

messages.yml holds every chat message and gui.yml the leaderboard layout and items; both accept MiniMessage, legacy & codes and hex colours.
storage:
  type: MYSQL
  mysql:
    host: localhost
    port: 3306
    database: minecraft
    username: crystalbounties
    password: change-me
    use-ssl: false
    pool-size: 10
OptionDefaultMeaning
storage.typeSQLITESQLITE, MYSQL, MARIADB or POSTGRESQL (restart, no data migration)
storage.sqlite.filebounties.dbSQLite file inside the plugin folder
storage.<type>.pool-size10Connection pool size (2 to 50)
bounty.minimum100.00Minimum gross contribution
bounty.maximum10000000.00Maximum accumulated bounty
bounty.tax-percent5.0Share removed from each contribution
bounty.placement-cooldown-seconds30Delay between placements by one player
bounty.history-limit10Lines shown by /bounty history (1 to 100)
bounty.leaderboard-size100Bounties shown in the GUI (10 to 1000)
bounty.cache-refresh-seconds60Cache reload interval from the database
anti-farm.enabledtrueMaster switch for anti-farm rules
anti-farm.block-same-iptrueDeny claims when killer and victim share an IP
anti-farm.pair-cooldown-seconds3600Minimum time between claims on the same victim by the same killer
anti-farm.max-claims-per-window · window-seconds2 · 86400Claims per killer and victim pair per window
anti-farm.block-creative-killerstrueDeny claims by killers in Creative
anti-farm.blocked-worlds[]Worlds where bounties cannot be claimed
broadcasts.placed · broadcasts.claimedtrue · trueServer-wide announcements
format.currency-symbol · decimals · locale$ · 2 · en-USMoney formatting

Placeholders

Identifier crystalbounties; requires PlaceholderAPI. Amount placeholders are also available with the _formatted, _short and _currency suffixes.
PlaceholderValue
%crystalbounties_amount%Bounty on the player (also _minor)
%crystalbounties_has_bounty%true or false
%crystalbounties_rank%Leaderboard rank or N/A
%crystalbounties_contributors%Distinct contributors to the current bounty
%crystalbounties_total_active%Number of active bounties
%crystalbounties_total_amount%Sum of all active bounties
%crystalbounties_average_amount%Average active bounty
%crystalbounties_highest_name% · %crystalbounties_highest_amount%Target and amount of the highest bounty
%crystalbounties_top_<n>_name% · _amount · _contributors · _uuidLeaderboard entry n (1 to 1000)

Developer API

Load CrystalBountiesApi from the Bukkit services manager (package me.crystaldevs.crystalbounties.api) and add softdepend: [CrystalBounties]. BountyPlacedEvent and BountyClaimedEvent are fired for other plugins; BountyClaimedEvent fires after the claim is recorded, regardless of the payout outcome.
CrystalBountiesApi api = Bukkit.getServicesManager().load(CrystalBountiesApi.class);

Optional<Bounty> bounty = api.getCachedBounty(targetId);
List<LeaderboardEntry> top = api.getCachedLeaderboard(10);
api.getContributors(targetId, 5); // CompletableFuture<List<Contributor>>
api.addSystemBounty(targetId, targetName, sourceId, sourceName, new BigDecimal("500"));
api.removeSystemBounty(targetId, targetName, sourceId, sourceName);

Known Limitations

• Contributions cannot be cancelled or refunded by players, and /bounty remove does not refund contributors. • There is no GUI for placing bounties. • The placement cooldown is held in memory and resets on restart. • Payout and refund edge cases, GUI drag protection and cooldown behaviour under database latency are known issues in this version; test on a staging server before production. • If the console reports that a payout was deposited but could not be marked paid, mark that payout as PAID before the killer rejoins to prevent a duplicate payment.

FAQ & Troubleshooting

The plugin does not enable. Check Paper 1.21.x, Java 21, Vault and an economy plugin. Vault alone has no balances. Players cannot afford bounties or balances never change. Confirm the economy plugin is hooked into Vault and that its balance commands work. A kill does not pay out. The killer receives the anti-farm message with the reason. Check same IP, pair cooldown, claim window, Creative mode and blocked worlds. The killer got a payout pending message. The economy rejected the deposit. It is retried on the next join; /bounty debug shows the pending count. MariaDB or PostgreSQL fails to load. The server needs internet access on first start so Paper can download the driver.

Support

For help, join the official Crystal Developments Discord: https://discord.gg/j6rHpCSKeJ. Include the CrystalBounties version, Paper and Java versions, your Vault economy plugin, storage type, the output of /bounty debug and the first relevant console error with database passwords removed.