Repository navigation
Pending Rewards
When a player's inventory is full at the moment a reward is delivered, LofiBox can save the item rather than dropping it on the ground. The player can then claim it later through a paginated GUI.
In config.yml, change full-inventory-action from DROP to PENDING:
full-inventory-action: PENDING- Player opens a box with a full inventory.
- The reward item is saved to
plugins/LofiBox/pending/<player-uuid>.yml. - The player receives an in-game message notifying them of the pending item.
- If EssentialsX is installed, the player also receives an EssX mail message.
- The player runs
/lofibox redeemto open their pending rewards GUI. - Clicking an item attempts to add it to their inventory. If space is available, the item is removed from the queue. If still full, an error message is shown.
- Displays up to 36 pending items per page.
- Previous / Next buttons appear when there are multiple pages.
- A close button exits the GUI.
- Items are shown with their original appearance. Hover text shows "Click to claim".
If EssentialsX is installed, players receive an in-game mail message whenever a reward is saved to their pending queue. They can read it with /mail read even if they were offline when it was sent.
The mail message text is configurable in messages.yml under the inventory-full-mail key.
| Command | Permission | Default | Description |
|---|---|---|---|
/lofibox redeem |
lofibox.redeem |
true | Open the pending rewards GUI |
lofibox.admin also grants access to /lofibox redeem.
Pending items are stored per-player in YAML files:
plugins/LofiBox/pending/<player-uuid>.yml
Full ItemStack data is serialized (including PDC, enchantments, lore, etc.), so custom items from MMOItems, Oraxen, and similar plugins are preserved correctly. The file is deleted automatically when a player claims all pending items.