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
| Requirement | Supported value |
|---|---|
| Server software | Paper 1.21.x (api-version 1.21); Spigot and Folia are not supported |
| Java | 21 |
| Required | Vault plus a Vault-compatible economy plugin such as EssentialsX Economy |
| Optional | PlaceholderAPI |
| Storage | SQLite (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
/bountiesCommands
/bounty requires crystalbounties.use (everyone) and has the alias /cbounty.
| Command | Permission (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 top | crystalbounties.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) |
| /bounties | crystalbounties.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 reload | crystalbounties.admin.reload (OP) | Reload config, messages and GUI |
| /bounty debug | crystalbounties.admin.debug (OP) | Ready state, cache size, pending payouts and database queue |
Permissions
| Permission | Default | Purpose |
|---|---|---|
| crystalbounties.use | Everyone | Use /bounty |
| crystalbounties.create | Everyone | Place bounties |
| crystalbounties.info | Everyone | Bounty info and history |
| crystalbounties.top | Everyone | Top 10 in chat |
| crystalbounties.gui | Everyone | Leaderboard GUI |
| crystalbounties.admin | Operator | All four admin permissions |
| crystalbounties.admin.set · remove · reload · debug | Operator | Individual admin commands |
| crystalbounties.bypass.cooldown | Operator | Skip the placement cooldown |
| crystalbounties.bypass.limit | Operator | Skip 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| Option | Default | Meaning |
|---|---|---|
| storage.type | SQLITE | SQLITE, MYSQL, MARIADB or POSTGRESQL (restart, no data migration) |
| storage.sqlite.file | bounties.db | SQLite file inside the plugin folder |
| storage.<type>.pool-size | 10 | Connection pool size (2 to 50) |
| bounty.minimum | 100.00 | Minimum gross contribution |
| bounty.maximum | 10000000.00 | Maximum accumulated bounty |
| bounty.tax-percent | 5.0 | Share removed from each contribution |
| bounty.placement-cooldown-seconds | 30 | Delay between placements by one player |
| bounty.history-limit | 10 | Lines shown by /bounty history (1 to 100) |
| bounty.leaderboard-size | 100 | Bounties shown in the GUI (10 to 1000) |
| bounty.cache-refresh-seconds | 60 | Cache reload interval from the database |
| anti-farm.enabled | true | Master switch for anti-farm rules |
| anti-farm.block-same-ip | true | Deny claims when killer and victim share an IP |
| anti-farm.pair-cooldown-seconds | 3600 | Minimum time between claims on the same victim by the same killer |
| anti-farm.max-claims-per-window · window-seconds | 2 · 86400 | Claims per killer and victim pair per window |
| anti-farm.block-creative-killers | true | Deny claims by killers in Creative |
| anti-farm.blocked-worlds | [] | Worlds where bounties cannot be claimed |
| broadcasts.placed · broadcasts.claimed | true · true | Server-wide announcements |
| format.currency-symbol · decimals · locale | $ · 2 · en-US | Money formatting |
Placeholders
Identifier crystalbounties; requires PlaceholderAPI. Amount placeholders are also available with the _formatted, _short and _currency suffixes.
| Placeholder | Value |
|---|---|
| %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 · _uuid | Leaderboard 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.