Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
Cashback
Vault cashback cycles for Paper 1.20.6-26.3, Purpur 1.21.11 / 26.2 and Folia 1.20.6-26.3 · Java 21+
Players spend money at your shop to fill a progress bar. When the bar is full, cashback becomes ACTIVE, and a percentage of their next purchases is paid back automatically through Vault. When the quota runs out, the cycle resets and filling starts again.
What's new in 1.4.0
- Menu for players -
/cbopens a native GUI: a status page plus a paginated history page, 5 or 6 rows, live refresh, configurable filler and click sound. It is read-only, so there is nothing to claim or take. - Custom shop support - a shop that charges money itself.
- Drop-in upgrade - no database changes. Text commands stay, and the menu can be switched off in config.
How a cycle works
- FILL - purchases add value to the progress bar. These purchases do not pay cashback.
- ACTIVATE - at 100%, the progress bar unlocks a cashback quota.
- PAYOUT - every purchase while ACTIVE pays back the configured percentage, 30% by default.
- RESET - when the quota reaches zero, the cycle starts again.
Features
- Menu for players - status page (rank, mode, fill bar, remaining quota, total cashback) and history with pages.
- Crash-safe payouts - every payout is claimed in the database before the Vault deposit, preventing duplicate payments after a crash.
/cb admin recoversettles anything left over, and payouts that may already have been paid are blocked until you confirm them withforce. - No double counting - one purchase equals one payout, even if a shop plugin fires several events.
- Large purchases count in full - a purchase worth several cycles is calculated exactly and is never truncated.
- Per-rank targets and cashback rates through permission nodes, with LuckPerms support.
- Optional carry-over - value that passes a stage limit can continue into the next stage instead of being discarded.
- Custom shops -
/cb grantrecords a purchase or pays a direct reward, with amount limits. - Admin diagnostics -
/cb admin healthshows the Vault provider, shop adapters, pending payouts, cycle settings, ranks, storage and server/Java;/cb admin history <player>lists the last 10 transactions with the shop source. - Reset keeps lifetime earned -
/cb admin resetclears the cycle only. - PlaceholderAPI - mode, fill, quota, rate, rank and lifetime earned.
- English and Indonesian messages included; new keys are added on update without overwriting your edits.
- Automatic history cleanup and optional bStats.
The menu
/cb opens the menu
gui:
enabled: true # false = chat only
on-command: true # false = /cb stays text, /cb menu still opens the GUI
rows: 6 # 5 or 6
refresh-ticks: 20 # 0 = no automatic refresh
history-per-page: 10 # max 28 (5 rows) or 35 (6 rows)
fill-material: GRAY_STAINED_GLASS_PANE
sound: "minecraft:ui.button.click"
Custom shops
Cashback cannot see purchases made by other plugins. If a menu charges the player itself, have it run this command from console after the charge:
/cb grant
amount is the money the menu already took, not the cashback: a 25,000 item is 25000. A button charges first, then grants:
left_click_commands:
- '[console] eco take %player% 25000'
- '[console] cashback grant %player% 25000'
Enable it with two lines; the rest of the block can stay at its defaults:
custom-grants:
enabled: true
require-console: true # console/RCON only: a grant is money
Requirements
- Paper 1.20.6-26.3, Purpur 1.21.11 / 26.2, or Folia 1.20.6-26.3
- Java 21+
- Vault and a Vault-compatible economy plugin
- Optional: EconomyShopGUI (free or Premium), UltimateShop 3.6.3+, PlaceholderAPI
- On Folia use VaultUnlocked; Vault 1.7.3 does not load on Folia.
Platform support: This is a Paper plugin. It does not run on Spigot or CraftBukkit because it uses the Paper API and the
plugin.ymllibraries loader.
Installation
- Drop
Cashback.jarinto the server's/pluginsfolder and restart the server. - Make sure Vault and an economy plugin are installed.
- Edit
plugins/Cashback/config.ymlfor targets, rates and the menu. - Run
/cb admin health- it checks Vault, shop adapters, pending payouts, cycle and storage in one place. - Buy something in your shop and check
/cb status, then/cb.
Commands
| Command | Description |
|---|---|
/cb |
Open the menu (text when the GUI is disabled). |
/cb menu [status|history] [page] |
Open a specific menu page. |
/cb history [page] |
History through the menu. |
/cb status |
Text status, always available. |
/cb version |
Version, server, Java, adapters and storage. |
/cb help |
Command list, filtered by permission. |
/cb admin health |
Vault, adapters, pending payouts, cycle, storage and server. |
/cb admin history <player> |
Last 10 transactions, including shop source. |
/cb admin inspect <player> |
Cycle state and rank of a player. |
/cb admin reset <player> |
Reset the cycle (lifetime earned stays). |
/cb admin recover [force] |
Settle payouts left pending by a crash. |
/cb admin reload |
Reload config and language files. |
/cb grant <player> <amount> |
Register a custom shop purchase (optional: --reward). |
Permissions
| Permission | Default | Description |
|---|---|---|
cashback.use |
true |
/cb, /cb menu, /cb history, /cb status. |
cashback.admin |
op |
All admin commands, including grant. |
cashback.admin.help |
- | /cb help. |
cashback.admin.version |
- | /cb version. |
cashback.admin.reload |
- | /cb admin reload. |
cashback.admin.health |
- | /cb admin health. |
cashback.admin.inspect |
- | /cb admin inspect <player>. |
cashback.admin.history |
- | /cb admin history <player>. |
cashback.admin.reset |
- | /cb admin reset <player>. |
cashback.admin.recover |
- | /cb admin recover [force]. |
cashback.admin.grant |
- | /cb grant, only when custom-grants.require-console: false. |
cashback.rank.<name> |
- | Target and rate per rank, from ranks.groups. |
Placeholders
%cashback_mode% FILLING / ACTIVE
%cashback_mode_display% mode text in the active language
%cashback_fill% %cashback_fill_percent%
%cashback_quota% %cashback_quota_percent%
%cashback_rate% rate for the player's rank
%cashback_rank% rank name, or default
%cashback_total_earned%
Support
Post in the discussion tab with your server software and version, the Cashback version (/cb version), the shop plugin version, and the relevant console lines.


