Skip to content

Commands and Permissions

Lord_Lofi edited this page Apr 21, 2026 · 5 revisions

Commands & Permissions

Commands

The main command is /lofibox. Available aliases: /mb, /crate, /lbox.

Command Permission Description
/lofibox give <box> <player> [amount] lofibox.give Give a box item to a player
/lofibox givekey <tier> <player> [amount] lofibox.give Give a key item to a player
/lofibox open <box> lofibox.use Open a box as a player — admins bypass item and key requirements
/lofibox preview <box> lofibox.use Open the reward preview GUI
/lofibox list lofibox.use List all loaded box IDs and names
/lofibox stats [player] lofibox.stats Open your own stats GUI. Requires lofibox.stats.others to view another player.
/lofibox redeem lofibox.redeem Open your pending rewards GUI to claim items saved when your inventory was full
/lofibox reload lofibox.reload Reload all configs and box definitions
/lofibox editor lofibox.editor Open the in-game box editor GUI

Opening Boxes

As a player (normal flow):

  1. Hold the crate item in your main hand.
  2. Right-click — the item is consumed and the spin opens.

As an admin:

  • /lofibox open <box> opens the crate without consuming an item.
  • Requires lofibox.admin or lofibox.give to give yourself a box item.

Permissions

Permission Default Description
lofibox.admin op Grants all permissions
lofibox.use true Open boxes, preview, and list crates
lofibox.give op Give box and key items to players
lofibox.reload op Reload configs
lofibox.stats false View your own stats GUI via /lofibox stats
lofibox.stats.others op View another player's stats; also lets console/NPCs open the GUI on a target player's screen
lofibox.redeem true Open your own pending rewards GUI via /lofibox redeem
lofibox.bypass op Bypass permission-required on rewards — always eligible for every reward
lofibox.editor op Open the in-game box editor GUI

lofibox.stats defaults to false so you can grant it selectively — for example, only through a Citizens NPC interaction — rather than giving all players direct command access.


LuckPerms Setup Example

To give all players in the vip group access to VIP-gated rewards:

/lp group vip permission set lofibox.vip true

No further setup is required — LofiBox reads permissions through the standard Bukkit API.


NPC Integration (Citizens / other)

Stats GUI via NPC

The most common pattern is to have a Citizens NPC open a player's stats GUI when clicked, without giving the player direct /lofibox stats access:

  1. Grant lofibox.stats to a group or leave it at the default false.
  2. Add a console command to the NPC click:
    lofibox stats %player_name%
    
    When run as console, this opens the stats GUI directly on %player_name%'s screen — no permission check on the player is needed.

The lofibox.stats.others permission governs the console path, which defaults to op (console always bypasses this in practice).

Giving Boxes via NPC

lofibox give halloween %player_name% 1

Or give the box to the player so they can open it themselves.

Clone this wiki locally