Repository navigation
Configuration
Lord_Lofi edited this page Apr 21, 2026
·
3 revisions
LofiBox has two configuration files: config.yml for behaviour settings and messages.yml for all player-facing text.
# What to do when a player's inventory is full when receiving a reward.
# DROP - drop the item at the player's feet
# PENDING - save to pending rewards; player redeems via /lofibox redeem
# (EssX mail notification sent if EssentialsX is installed)
full-inventory-action: DROP
# Whether to show actual weight numbers in the preview GUI.
# false = show only approximate tier labels (Common / Rare / Epic / Legendary)
preview-show-weights: true
# Sound played when a player starts opening a box (can be overridden per-box).
default-open-sound: "block.chest.open"
# Sound played when the spin stops and the winner is revealed.
default-win-sound: "entity.player.levelup"
# Firework burst on win.
win-firework: true
# Broadcast a server-wide message to all other online players when a head reward is won.
head-found-broadcast: true
# Post the head-found message to EssentialsXDiscord.
# Independent of head-found-broadcast — both can be active simultaneously.
discord-head-announce: false
# The EssentialsXDiscord channel key to post to (from EssX Discord's config).
discord-channel: "chat"| Key | Default | Description |
|---|---|---|
full-inventory-action |
DROP |
DROP drops item at feet; PENDING saves to /lofibox redeem queue |
preview-show-weights |
true |
Show exact weight numbers in the preview GUI |
default-open-sound |
block.chest.open |
Fallback open sound if not set per-box |
default-win-sound |
entity.player.levelup |
Fallback win sound if not set per-box |
win-firework |
true |
Spawn a firework at the player on win |
head-found-broadcast |
true |
Announce head wins to all other online players in server chat |
discord-head-announce |
false |
Post head wins to EssentialsXDiscord (requires EssentialsXDiscord) |
discord-channel |
chat |
EssentialsXDiscord channel key to post to |
All messages use MiniMessage formatting. The <prefix> tag is replaced with the value of the prefix key.
prefix: "<gray>[<gradient:#6366f1:#a78bfa>LofiBox</gradient><gray>] "
reload: "<prefix><green>Configuration reloaded."
no-permission: "<prefix><red>You don't have permission to do that."
box-opened: "<prefix><aqua>Opening <white>{box}<aqua>..."
reward-won: "<newline><gradient:#6366f1:#a78bfa> ✦ Congratulations! ✦</gradient><newline> <gray>You won <white>{reward}<gray> from <white>{box}<gray>!<newline>"
give-success: "<prefix><green>Gave <white>{amount}x {box}<green> to <white>{player}<green>."
# ... (see full file for all keys)| Placeholder | Available in |
|---|---|
{box} |
box-opened, reward-won, give-success, give-received |
{reward} |
reward-won |
{player} |
give-success, stats-header |
{count} |
stats-line |
{amount} |
give-success, give-received |
{id} |
list-line |
{key} |
key-required, key-consumed |
{cost} |
vault-insufficient-funds, vault-charged |
{balance} |
vault-insufficient-funds |
{prompt} |
editor-input-prompt |
{error} |
editor-save-error |
{page} |
redeem-gui-title |
{total} |
redeem-gui-title |
key-required: "<prefix><red>This box requires a <white>{key}<red> to open."
key-consumed: "<prefix><gray>Your <white>{key}<gray> was consumed."vault-unavailable: "<prefix><red>Economy is not available on this server."
vault-insufficient-funds: "<prefix><red>You need <white>{cost}<red> to open this box. <dark_gray>(balance: {balance})"
vault-charged: "<prefix><gray>You were charged <white>{cost}<gray>."editor-input-prompt: "<prefix><aqua>Chat input required: <white>{prompt}"
editor-input-cancel: "<prefix><gray>Type <white>cancel<gray> to abort."
editor-box-id-taken: "<prefix><red>A box with ID '<white>{id}<red>' already exists."
editor-save-success: "<prefix><green>Box '<white>{box}<green>' saved and reloaded."
editor-save-error: "<prefix><red>Could not save: <white>{error}"
editor-deleted: "<prefix><yellow>Box '<white>{box}<yellow>' deleted."
editor-hold-item: "<prefix><red>Hold an item in your main hand first."
editor-invalid-number: "<prefix><red>That is not a valid number."
editor-shift-to-delete: "<prefix><red>Shift-click to confirm deletion."
editor-reward-no-item: "<prefix><red>Set the reward item before saving."LofiBox automatically merges any missing keys from the bundled defaults into your existing config files on every startup and reload. You will never need to manually edit files after an upgrade — new keys appear with their defaults, and your existing values are preserved.
Run /lofibox reload to reload all config files and box definitions without restarting the server.