-
Notifications
You must be signed in to change notification settings - Fork 14
Treasury Placeholders
This page is complete and is valid as of Treasury v2.0.0.
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.
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:
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}
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}
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
These placeholders need a player object to function.
treasury_eco_top_rank
treasury_eco_top_rank_{currency}