Skip to content

PlaceholderAPI

Lord_Lofi edited this page Apr 18, 2026 · 1 revision

PlaceholderAPI

LofiBox registers a PlaceholderAPI expansion automatically on startup if PAPI is installed. No /papi ecloud download is needed.


Available Placeholders

Placeholder Description Example Output
%lofibox_total_opened% Total number of boxes opened by the player across all types 42
%lofibox_opened_<boxId>% Number of boxes of a specific type opened by the player 7

Examples

%lofibox_total_opened%
%lofibox_opened_example%
%lofibox_opened_mythic%
%lofibox_opened_legendary%

Usage Examples

Scoreboard (CMI / FeatherBoard / etc.)

lines:
  - "&7Crates Opened: &f%lofibox_total_opened%"
  - "&7Mythic Opens: &f%lofibox_opened_mythic%"

LofiBox Conditions (in reward actions)

PAPI placeholders are parsed inside action strings, so you can use them in [console] commands:

actions:
  - "[console] reward give {player} crate_bonus_%lofibox_total_opened%"

Chat Format (EssentialsX / LuckPerms)

{lofibox_total_opened} crates opened

Stats Storage

Opened counts are stored per-player in plugins/LofiBox/stats/<uuid>.yml and are loaded on first access, then cached in memory and flushed to disk on server shutdown.

Clone this wiki locally