GlassRewards
Version 1.0.0-alpha.2 • Tested on Paper 26.3 • Java 25 • Support: support@glasshosting.com
Overview
GlassRewards gives you YAML-defined chest menus, kits with cooldowns, one-time vouchers and weighted crate keys. Every claim is reserved and recorded in GlassAPI before the player's inventory changes, so rewards are not lost on a full inventory, a crash, or a double click. It never charges or grants money and never runs console commands from menus, which keeps menus safe to hand to builders.
Requirements
- Paper 26.3 (tested), Java 25.
- GlassAPI 2.3.0-alpha.2 or newer (hard dependency).
- Optional: PlaceholderAPI (menu text), LuckPerms (permissions), Nexo (custom item rewards).
Installation
- Stop the server, install GlassAPI and GlassRewards, start.
- Edit
plugins/GlassRewards/menus/home.yml,menus/kits.ymlandrewards.yml. /glassrewards validate, then/glassrewards reload.- Players open
/glassrewards.
Commands
| Command | Permission | What it does |
|---|---|---|
/glassrewards or /glassrewards open [menu] |
glassrewards.open |
Open the home menu or a named menu. Players only. |
/glassrewards claim <kit> |
glassrewards.claim |
Claim a kit. |
/glassrewards preview <reward> |
glassrewards.open |
Preview a reward's contents. |
/glassrewards redeem |
glassrewards.claim |
Redeem the voucher or crate key in your main hand. |
/glassrewards give <voucher-or-crate> <online-player> |
glassrewards.give |
Issue one voucher or key (console allowed). |
/glassrewards validate |
glassrewards.edit |
Check YAML without applying. |
/glassrewards reload |
glassrewards.edit |
Apply edited YAML. An invalid reload keeps the previous catalog. |
/glassrewards inspect <UUID> <reward> |
glassrewards.audit |
Claim count, ready time and pending delivery. |
/glassrewards reconcile <UUID> <reward> <delivered|not-delivered> confirm |
glassrewards.audit |
Resolve an interrupted delivery. |
/glassrewards preset [list|name], discord [test] |
glassrewards.premium |
Paid edition. See Editions. |
The namespaced form /glassrewards:glassrewards also works. No unprefixed kit, menu or voucher commands are registered.
Permissions
| Node | Default | Grants |
|---|---|---|
glassrewards.open |
true | Open permitted menus and preview rewards. |
glassrewards.claim |
true | Claim kits; redeem vouchers and keys. |
glassrewards.edit |
op | Validate and reload YAML. |
glassrewards.give |
op | Issue vouchers and crate keys. |
glassrewards.audit |
op | Inspect and reconcile deliveries. |
glassrewards.premium |
op (not declared in plugin.yml) | Paid edition commands. |
Rewards and buttons can require your own permissions, such as the shipped glassrewards.rank.member.
Configuration
config.yml
| Key | Default | Effect |
|---|---|---|
metrics.enabled |
true |
bStats opt-out. |
premium.discord.* |
off | Paid alerts (reward_claimed). |
menus/*.yml
| Key | Meaning |
|---|---|
menu_title |
Title (color codes allowed). |
size |
9 to 54, a multiple of nine. |
permission |
Optional; needed to open. |
items.<id>.slot |
Slot number (one button per slot). |
items.<id>.material |
Icon material. |
items.<id>.display_name |
Name. |
items.<id>.lore |
Lore lines. {cooldown:<reward>} shows time left; PlaceholderAPI works. |
items.<id>.permission |
Optional; the button is hidden without it and rechecked on click. |
items.<id>.actions |
Actions for any click. |
items.<id>.left_click_actions / right_click_actions |
Per-click actions. |
Actions: [open] <menu>, [claim] <kit>, [preview] <reward>, [redeem], [close], [refresh], [message] <text>. Put messages before navigation or reward actions; at most one claim or redeem per click. Console or player command actions are rejected by validation on purpose.
rewards.yml
| Key | Meaning |
|---|---|
schema |
1. |
rewards.<id>.type |
KIT, VOUCHER or CRATE. |
rewards.<id>.permission |
Optional. |
rewards.<id>.cooldown |
Seconds between claims. |
rewards.<id>.one-time |
true for a single claim per player. |
rewards.<id>.items |
List of material: <MATERIAL> or nexo: <item_id> with amount (1 to 2304, default 1). |
rewards.<id>.outcomes |
CRATE only: list of weight (positive integer) and items. Exactly one outcome is chosen; all outcomes must fit before the draw. |
Shipped rewards: daily (KIT, 24 h, bread and torches), welcome (one-time VOUCHER, iron), rank (KIT for glassrewards.rank.member, 24 h), vote (VOUCHER, bread). No crate is enabled by default.
Using it efficiently
- Edit, validate, reload. Always run
validatefirst; a bad file never goes live. - Rank perks: give each rank kit its own permission and grant it through GlassPerms or LuckPerms.
- Vote vouchers: have GlassVote milestone commands run
glassrewards give vote %player%. - Nexo items: IDs are case sensitive and must exist. If Nexo loads late, GlassRewards revalidates when Nexo's items load; otherwise run
/glassrewards reloadafter Nexo is ready. - Full inventories never drop or delete rewards; players can claim again once they have space.
- Vouchers and keys are serialized and single use on one server; they can be traded.
Integration with other Glass plugins
- GlassAPI: cooldowns, one-time claims and token serials.
- GlassShards: show balances with
%glassshards_balance_formatted%(display only; the shipped home menu does this). - GlassNPC: add
PLAYER_COMMAND glassrewards open hometo an NPC. - GlassVote: vote vouchers through
give.
DeluxeMenus, zMenu, PlayerKits2 and other menu or crate configs are not drop-in compatible.
Troubleshooting
| Problem | Fix |
|---|---|
| "Plugin unavailable" | GlassAPI is missing or a Nexo ID is unresolved; check the console, fix and reload. |
| Reload fails | Read the validation message: unknown keys, unknown actions or missing Nexo IDs. |
| "Players only" | open, claim, redeem and preview must be run in game. |
| A claim is stuck pending | /glassrewards inspect <UUID> <reward>, check the inventory, then reconcile. |
Changelog
- 1.0.0-alpha.2: Optional verified Nexo item rewards; free edition alpha (2026-10-13).
- 1.0.0-alpha.1: Menus, kits, vouchers and crates on GlassAPI.