Repository navigation
Releases
LofiBox 1.5.4
v1.5.4
New Features
Pending Rewards System
- Rewards that cannot fit in a full inventory are now saved to disk instead of dropping on the ground
- Persisted per-player under plugins/LofiBox/pending/ — survives server restarts and crashes
- Players are notified with a message directing them to /lofibox redeem
- If EssentialsX is installed, a /mail notification is also sent with the reward and box name
Redeem GUI
- /lofibox redeem opens a paginated 6-row GUI showing all pending rewards
- Click any item to claim it directly into your inventory
- If inventory is still full at claim time, a message prompts the player to make space first
- Automatically refreshes after each successful claim
- New lofibox.redeem permission (default: true)
Broadcast Improvements
- head-found-broadcast and discord-head-announce are now fully independent toggles — both can be enabled simultaneously
- Server broadcast no longer sends to the opening player (they already see the congratulations message)
- Head win messages now consistently append "Head" — e.g. "Lord_Lofi found a Watermelon 28 Head!"
Config Changes
No new config keys. Existing config.yml updated with clarified comments:
head-found-broadcast: true # server-wide broadcast to other players
discord-head-announce: false # post to EssentialsXDiscord (independent of above)
New messages in messages.yml (added automatically on first run):
- inventory-full — updated to direct players to /lofibox redeem
- inventory-full-mail — EssX mail body sent when a reward is saved
- redeem-none — shown when player has no pending rewards
- redeem-claimed — shown on successful claim
- redeem-inventory-full — shown if inventory is full at claim time
Dependencies
- Essentials added to softdepend for mail notifications (optional)
LofiBox 1.5.3
v1.5.3
Bug Fixes
EssentialsXDiscord Hook
- Fixed IllegalArgumentException on startup when the configured channel key (e.g. "chat") is already registered as a built-in EssX message type
- Hook now checks isRegistered() before calling registerMessageType(), skipping registration for built-in channels
- EssentialsXDiscord integration fully operational
LofiBox 1.5.1
v1.5.1
Bug Fixes & Improvements
HeadDatabase Native Category Support
- Added hdb-category field to head-categories.yml — maps directly to HDB's built-in category groups (ANIMALS, FOOD_DRINKS, MISCELLANEOUS, MONSTERS, PLANTS, BLOCKS, DECORATION, HUMANOID, HUMANS, ALPHABET)
- hdb-category and search terms can be used together on the same category — results are unioned, giving the full native group plus any extra keyword matches
- Fixes food_and_drink and miscellaneous returning 0 heads (were searching name/tags only; these are HDB-assigned categories not reflected in head names)
- Fixes animals returning only 4 heads and humans returning 0 heads — added "animal" and "human" as additional search terms alongside the native category
New Crate
- Added repair.yml — a 100% weight crate that grants temporaryperm.sign.repair.access via LuckPerms console command on open
EssentialsXDiscord Hook Fix
- Fixed setup failure when EssentialsXDiscord is installed — hook now reflects off the DiscordService interface rather than the concrete implementation class, resolving NoSuchMethodException on getDefinedChannel
Config Changes
New optional field available in head-categories.yml per category:
hdb-category: CATEGORY_NAME
Valid values match HDB's CategoryEnum: ANIMALS, MONSTERS, FOOD_DRINKS, HUMANS, HUMANOID, BLOCKS, DECORATION, PLANTS, ALPHABET, MISCELLANEOUS
Can be combined with search terms on the same entry. No changes required to existing configs.
LofiBox 1.5.0
v1.5.0
New Features
HeadDatabase Categories & Seasonal System
- Added 26 themed head categories with search-term pools (animals, anime, halloween, pokemon, star wars, and more)
- Seasonal availability windows — categories activate and expire on configurable MM-DD dates; year-wrap ranges (e.g. Dec–Jan) supported automatically
- Double-reward mechanic — per-category bonus head chance, optionally scoped to a date range (e.g. 50% on Pokémon Day, 5% during Halloween)
- All-heads pool (random: true) draws from every head in HeadDatabase with no filtering
Default Lootboxes
- 33 default box YAML files ship with the plugin (one per head category + example)
- Auto-copied to plugins/LofiBox/boxes/ on first install — no setup required
Broadcasts & Discord Announce
- Server-wide chat broadcast when a player wins a head-category reward
- Optional EssentialsXDiscord integration — posts head finds to a configurable channel
- Double-reward wins get their own broadcast message
- Both toggleable independently in config.yml
Player Stats GUI
- /lofibox stats [player] opens a paginated 6-row GUI showing per-box open counts
- Entries sorted most-opened first; clicking an entry opens that box's reward preview
- New lofibox.stats permission (default: false) gates direct command access
- Console/NPC path (lofibox stats ) opens the GUI on the target player's screen — no player permission required
Public Developer API
- LofiBoxAPI registered as a Bukkit service; other plugins call LofiBoxAPI.get()
- Exposes box metadata, seasonal availability, season windows, and full reward snapshots
- SeasonWindow and RewardInfo value types with helper methods (isActiveNow(), isDoubleChanceActiveNow(), toDisplayString())
Changes
- lofibox.stats permission added (default false); previously stats were accessible via lofibox.use
- EssentialsDiscord added to softdepend in plugin.yml
- Editor item capture now reads from the cursor rather than the main hand, fixing an issue where holding an item and clicking a capture slot did nothing
Config Changes
New keys in config.yml (added automatically on first run, no action needed on upgrade):
head-found-broadcast: true
discord-head-announce: false
discord-channel: "chat"
New keys in messages.yml:
- head-found-broadcast
- head-double-reward
New fields in head-categories.yml per category (all optional):
- available-from / available-to — seasonal window (MM-DD)
- double-chance — bonus reward percentage
- double-from / double-to — double-reward date window
- random: true — pool all HDB heads with no filtering
LofiBox 1.4.0
What's New
v1.4.0 — In-Game Admin Editor
/lofibox editoropens a three-screen GUI: box list → box editor → reward editor- Set box item, display name, sounds, required key, and open cost entirely in-game
- Add, edit, and remove rewards without touching any YAML
- Captures any item directly from your main hand — including custom plugin items (MMOItems, Oraxen, etc.) with full PDC preservation
- Per-reward controls: display name, weight (click to adjust), permission node, and actions list
- Saves to
boxes/<id>.ymland hot-reloads immediately — no server restart required - Shift-click to delete a box permanently
LofiBox 1.3.0
What's New
v1.3.0 — Vault Economy Cost
- Boxes can declare
open-cost: <amount>to charge players via any Vault-compatible economy plugin - Handles insufficient funds and missing economy provider with configurable messages
- Works independently or alongside
required-keyon the same box lofibox.adminbypasses cost checks
LofiBox 1.2.0
What's New
v1.2.0 — 7-Tier Key System
- Seven physical key items: Wooden → Stone → Copper → Iron → Golden → Diamond → Netherite
- Keys are tripwire hooks with enchanted glow and custom model data (1001–1007) for resource pack overrides
- Boxes can declare
required-key: <tier>— one key is consumed alongside the box item on open /lofibox givekey <tier> <player> [amount]to distribute keys to playerslofibox.adminbypasses all key checks
LofiBox 1.1.0
What's New in v1.1.0
7-Tier Key Items
- Added seven physical key items with distinct names, colors, and lore:
Wooden (Tier I) · Stone (Tier II) · Copper (Tier III) · Iron (Tier IV) · Golden (Tier V) · Diamond (Tier VI) · Netherite (Tier VII) - Keys are tripwire hooks with a hidden Unbreaking I enchantment for the enchanted glow effect
- Each tier has a unique custom model data value (1001–1007) for resource pack model overrides
- Keys are PDC-tagged (
lofibox:key_tier) — spoofing them via renamed items is not possible - Flavor text and tier labels in lore for each key
Notes
Keys are item definitions only in this release — they can be given and held, but box integration arrives in v1.2.0.
LofiBox 1.0.0
LofiBox v1.0.0
Initial release.
Features
Core
- YAML-driven mystery boxes — one file per crate in
plugins/LofiBox/boxes/ - Weighted reward pools with per-player permission gating; ineligible rewards re-roll automatically
- CSGO-style decelerating spin animation (3-row GUI, 52-item strip)
- Paginated reward preview GUI with chance percentages (
/lofibox preview <box>) - Physical crate items tagged with PDC — right-click to consume and open
- Per-player open stats tracked in
plugins/LofiBox/stats/<uuid>.yml - Hot reload via
/lofibox reload— no server restart required
Action System
[message],[actionbar],[title],[sound],[command],[console]actions fire on win{player},{uuid},{reward},{box}placeholders available in all action strings- PlaceholderAPI placeholders parsed inside action strings when PAPI is installed
HeadDatabase Integration (optional)
- Specific heads by numeric ID via
head-database-id - Random heads from a built-in HDB category via
head-database-category(e.g.ANIMALS,MONSTERS) - Custom search-term pools defined in
head-categories.yml— filter HDB's full head list by name and tags - Multiple search terms per pool supported; results are deduplicated
- Pools built once at startup and cached; rebuilt on
/lofibox reload - Graceful fallback to
materialfield if HDB is unavailable or a category returns no results
Item Support
- Standard vanilla items with enchantments and custom model data
- HeadDatabase heads (specific or random)
- Base64 serialized items — preserves full PDC data for MMOItems, Oraxen, Nexo, ItemsAdder, MythicMobs, ExecutableItems
Integrations
- PlaceholderAPI —
%lofibox_total_opened%,%lofibox_opened_<boxId>% - LuckPerms compatible — uses standard Bukkit permission API
- MiniMessage formatting throughout — gradients, colors, hover text
Commands
| Command | Description |
|---|---|
/lofibox give <box> <player> [amount] |
Give a box item to a player |
/lofibox open <box> |
Open a box as admin (no item consumed) |
/lofibox preview <box> |
View all rewards and chances |
/lofibox list |
List all loaded boxes |
/lofibox stats [player] |
View open counts |
/lofibox reload |
Reload all configs and boxes |
Aliases: /mb, /crate, /lbox
Requirements
| Dependency | Required |
|---|---|
| Paper 1.21.x | ✅ Yes |
| PlaceholderAPI | ❌ Optional |
| HeadDatabase | ❌ Optional |
| LuckPerms | ❌ Optional |