Skip to content

Treasury Placeholders

Ivan Pekov edited this page Jul 11, 2023 · 8 revisions

This page is complete and is valid as of Treasury v2.0.0.

Treasury Placeholders

You can use the PlaceholderAPI plugin to make various values from the Treasury API display in holograms, chat messages, etc! :)

NEW You are now able to use MiniPlaceholders plugin instead of PlaceholderAPI. This plugin is available in multiple platforms, too. The placeholders are the same as for PlaceholderAPI, with one minor difference: the formatting ; an example:

  • The basic balance placeholder for Treasury in PlaceholderAPI is the following: %treasury_eco_balance% ;
  • in MiniPlaceholders, that placeholder would look like the following: <treasury_eco:balance>

This is applied for all placeholders Treasury provides.

List of all placeholders added:

Economy API

Top Balance

In order to enable the baltop placeholders, please see below:

Treasury's PlaceholderAPI hook settings are in PlaceholderAPI's config.yml - enable baltop placeholders as shown below:

PAPI config showcase

Same settings for MiniPlaceholders are available in a special config file available in the directory where Treasury stores it's settings, called miniplaceholders-hook.yml

These placeholders do not need a player object to function.

  • treasury_eco_top_balance
  • treasury_eco_top_balance_{currency}
  • treasury_eco_top_balance_fixed
  • treasury_eco_top_balance_fixed_{currency}
  • treasury_eco_top_balance_formatted
  • treasury_eco_top_balance_formatted_{currency}
  • treasury_eco_top_balance_formatted_{precision}dp
  • treasury_eco_top_balance_commas
  • treasury_eco_top_balance_commas_{currency}

Top Player

These placeholders do not need a player object to function.

  • treasury_eco_top_player
  • treasury_eco_top_player_{currency}
  • treasury_eco_top_player_{currency}_{position}

Balance

These placeholders need a player object to function.

  • treasury_eco_balance
  • treasury_eco_balance_{currency}
  • treasury_eco_balance_{precision}dp
  • treasury_eco_balance_fixed
  • treasury_eco_balance_fixed_{currency}
  • treasury_eco_balance_commas
  • treasury_eco_balance_commas_{currency}
  • treasury_eco_balance_formatted
  • treasury_eco_balance_formatted_{currency}
  • treasury_eco_balance_formatted_{precision}dp

Top rank

These placeholders need a player object to function.

  • treasury_eco_top_rank
  • treasury_eco_top_rank_{currency}