PlaceholderAPI

Obfeco provides extensive support for PlaceholderAPI, allowing you to display economy data in other plugins.

Personal Placeholders

These placeholders display information for the specific player. Replace <currency> with the ID of your currency (e.g., dollars).

Placeholder Description
%obfeco_<currency>_formatted% Player's balance formatted (e.g., 1.5k)
%obfeco_<currency>_raw% Player's balance as a raw number (e.g., 1500.00)
%obfeco_<currency>_symbol% The symbol for the currency (e.g., $)
%obfeco_<currency>_name% The display name of the currency

Alternative Formats:

  • %obfeco_balance_<currency>%
  • %obfeco_amount_<currency>%
  • %obfeco_raw_balance_<currency>%

Global Placeholders

Placeholder Description
%obfeco_<currency>_total_formatted% Total amount of this currency in the entire economy
%obfeco_<currency>_total_raw% Total amount as a raw number

Leaderboard Placeholders

Display the top players for a specific currency. Replace <position> with the rank (1, 2, 3...) and <currency> with the currency ID.

Placeholder Description
%obfeco_top_<position>_<currency>_name% Name of the player at this rank
%obfeco_top_<position>_<currency>_formatted% Formatted balance of the player at this rank
%obfeco_top_<position>_<currency>_raw% Raw balance of the player at this rank

Example:

  • %obfeco_top_1_dollars_name% -> "BusyBee"
  • %obfeco_top_1_dollars_formatted% -> "1.5M"

Cache Note

Leaderboard placeholders are cached for a few minutes to improve performance. You can adjust this in config.yml under placeholder.top-cache-minutes.