Quick start
This walkthrough creates a working code two ways — by hand, and with the in-game creator — then redeems it.
Create your first code
Section titled “Create your first code”- Create
plugins/Claimo/vouchers/welcome.yml:plugins/Claimo/vouchers/welcome.yml # Redeemed with /code welcomecmd: "give %player% diamond 5"console: true - Reload Claimo:
/code reload
- As a player, redeem it:
/code welcome
Paper 1.21.7+
- Run the creator command (needs
claimo.admin):/code create - On page 1, set the name (
welcome), the command (give %player% diamond 5), and leave run as console on. - Use « Back / Next » to review requirement pages, then click Create on
the last page. Claimo writes
vouchers/welcome.ymland reloads automatically.
Gate it behind a requirement
Section titled “Gate it behind a requirement”Want players to earn the reward? Add a requirements: block. This code only redeems
after the player has mined 100 blocks:
cmd: "give %player% diamond 5"console: truerequirements: - type: blocks_mined amount: 100Run /code reload. Now a player who hasn’t mined enough sees a checklist instead of the
reward. See Requirements for every built-in type.
Limit how often it’s redeemed
Section titled “Limit how often it’s redeemed”Add a limit: block to cap redemptions:
limit: mode: per-player amount: 1limit: mode: global amount: 50Open the GUI
Section titled “Open the GUI”Run the bare command with no argument to open a paginated GUI of every visible code — players click one to redeem it:
/codeNext steps
Section titled “Next steps”- Voucher files — every field explained.
- Configuration — sounds, storage, messages and the GUI.
- Developer API — register your own requirement types.