Repository navigation
Player Stats
LofiBox tracks how many times each player has opened every box and surfaces that data through a paginated GUI and console chat output.
Players with the lofibox.stats permission can run:
/lofibox stats
Admins and ops can view any player's stats:
/lofibox stats <player>
The GUI is a 6-row inventory titled "✦ Your Stats" (or "✦ {Player}'s Stats" when viewing someone else).
| Area | Slots | Contents |
|---|---|---|
| Header row | 0–8 | Decorative border |
| Entry area | 9–44 | One slot per box opened (up to 36 per page) |
| Controls row | 45–53 | Navigation buttons |
Entry slots show the box's icon, display name, and open count. Clicking an entry opens the reward preview GUI for that box.
Controls:
- Slot 45 — Close (Barrier)
- Slot 48 — Previous page (Arrow, hidden on page 1)
- Slot 49 — Page indicator (Paper)
- Slot 50 — Next page (Arrow, hidden on last page)
- Slot 53 — Total boxes opened (Nether Star)
Entries are sorted from most-opened to least-opened.
lofibox.stats defaults to false, so players cannot open the GUI via command by default. The intended pattern is to grant access through an NPC or a permission group:
Option A — LuckPerms group:
/lp group member permission set lofibox.stats true
Option B — Citizens NPC (no player permission needed):
Add a console command to the NPC:
lofibox stats %player_name%
When the command runs as console, LofiBox opens the GUI directly on the target player's screen. The player does not need lofibox.stats.
See Commands & Permissions for the full permission reference.
When console runs /lofibox stats <player> without a GUI-capable target (i.e. the player is offline), or when the command is triggered from a context that cannot open inventories, LofiBox prints the stats as a chat list instead.
Per-box open counts and totals are also available via PlaceholderAPI placeholders. See PlaceholderAPI for the full list.