Skip to content

Pending Rewards

Lord_Lofi edited this page Apr 21, 2026 · 1 revision

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.


Enabling Pending Rewards

In config.yml, change full-inventory-action from DROP to PENDING:

full-inventory-action: PENDING

How It Works

  1. Player opens a box with a full inventory.
  2. The reward item is saved to plugins/LofiBox/pending/<player-uuid>.yml.
  3. The player receives an in-game message notifying them of the pending item.
  4. If EssentialsX is installed, the player also receives an EssX mail message.
  5. The player runs /lofibox redeem to open their pending rewards GUI.
  6. 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.

The Redeem GUI

  • 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".

Mail Notifications (EssentialsX)

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.


Commands & Permissions

Command Permission Default Description
/lofibox redeem lofibox.redeem true Open the pending rewards GUI

lofibox.admin also grants access to /lofibox redeem.


Storage

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.

Clone this wiki locally