diff --git a/Placeholders.md b/Placeholders.md index eaace4f..6949175 100644 --- a/Placeholders.md +++ b/Placeholders.md @@ -66,7 +66,7 @@ If the command itself isn't there and `NO DOWNLOAD COMMAND` instead is shown, th - **[MySQLTokens](#mysqltokens)** - ### **N** - - *No Expansions* + - **[NumberFormatter](#numberformatter)** - ### **O** - **[OtherPlayer](#otherplayer)** @@ -817,6 +817,29 @@ A majority of these Expansions are maintained by the PlaceholderAPI team and can ---- +- ### **NumberFormatter** + > /papi ecloud download NumberFormatter + + More info about this expansion can be found on the [PAPI-NumberFormatter](https://polymart.org/resource/3316)). + + For instance: + + if %tokenenchant_token_long% returns 43535709321 + + %nf_4X_tokenenchant_token_long% will return 43B, + + %nf_#,##0.#_tokenenchant_token_long% will return 43,535,709,321 + %nf_#,##0.0#:IT_tokenenchant_token_long% will return 43.535.709.321,0 + + + `[]` is optional and `<>` is required. + + ``` + %nf_[:locale]_% # Converts a number produced by %other_placeholder% to a number using the specified format. + ``` + +---- + - ### **OtherPlayer** > /papi ecloud download OtherPlayer @@ -5729,10 +5752,11 @@ All placeholders are listed here: https://wiki.staffplusplus.org/integrations/pa If you add ```_long``` to the cost related placeholder, it will returne a number without comma/decimal point. ``` - %tokenenchant_token% - %tokenenchant_token_long% - %tokenenchant_token_num% - %tokenenchant_token_num_long% + %tokenenchant_tokens% : Returns the token balance as a double. For formatting, use NumberFormat placeholder %nf_%. + %tokenenchant_token% : Deprecated. (use %tokenenchant_tokens%) + %tokenenchant_token_long% : Deprecated. (use %tokenenchant_tokens%) + %tokenenchant_token_num% : Deprecated. (use %tokenenchant_tokens%) + %tokenenchant_token_num_long% : Deprecated. (use %tokenenchant_tokens%) %tokenenchant__level% %tokenenchant__cost% : cost to increment the enchantmnt level by one from the current level %tokenenchant__costmax% : cost to increment the enchantmnt level to its maax one from the current level @@ -5744,17 +5768,17 @@ All placeholders are listed here: https://wiki.staffplusplus.org/integrations/pa %tokenenchant__description% %tokenenchant__version% %tokenenchant__fullrefund% - %tokenenchant__fullrefund_long% + %tokenenchant__fullrefund_long% : Deprecated. (For formatting, use NumberFormat placeholder %nf_%.) %tokenenchnat__refund_Y% - %tokenenchnat__refund_Y_long% + %tokenenchnat__refund_Y_long% : Deprecated. (For formatting, use NumberFormat placeholder %nf_%.) %tokenenchant__alias% %tokenenchant_tokenmultiplier% %tokenenchant__occurrencemultiplier% %tokenenchant__occurrence_% : the activation chance (in %) for the at the level . If == 0, chance of the current level will be returned. %tokenenchant_repair_cost% - %tokenenchant_repair_cost_long% + %tokenenchant_repair_cost_long% : Deprecated. (For formatting, use NumberFormat placeholder %nf_%.) %tokenenchant_repair_cost_num% - %tokenenchant_repair_cost_num_long% + %tokenenchant_repair_cost_num_long% : Deprecated. (For formatting, use NumberFormat placeholder %nf_%.) %tokenenchant_enchantments% %tokenenchant_baltop__name% : The name of X-th baltop player %tokenenchant_baltop__balance% : The balance of X-th baltop player