Formatter
About
Expansion allowing you to fomat numbers and text in various different ways. Placeholders using the bracket format ({placeholder}) are supported. Currently supported Number formattings: - Format number by adding dividers for x numbers (i.e. 1000 -> 1,000) - Convert a number from one time unit to another - Rounding - Shorten (i.e. 1000 -> 1k) - Convert to a collection of time units (i.e. 100 -> 1m 40s) Currently supported Text formattings: - Capitalize the first letter of a string or each word of a String - Get the length of a string - Lowercase a string - Replace one set of characters with another - Get a specific section of a string (Substring) - Uppercase a string
Latest release
- Version
- 2.9.1
- Released
- 8 months ago
- Changes
- - **[Fixed]** `shorten` number placeholder not using the right config paths.
How to install
In-Game
Run these commands to download and install:
/papi ecloud download Formatter/papi reloadManual
Click the download button on this page to get the expansion, then copy it to the /plugins/PlaceholderAPI/expansions/ folder.
After copying, run /papi reloadto load it in.
Placeholders
All available placeholders provided by this expansion.
%formatter_number_format[_[locale]:[pattern]]_<number>%%formatter_number_from:<timeunit>_to:<timeuinit>_<number>%%formatter_number_round[_[precision]:[rounding]]_<number>%%formatter_number_shorten_<number>%%formatter_number_time[_<timeunit>]_<number>%%formatter_text_capitalize[_<option>]_<text>%%formatter_text_length_<text>%%formatter_text_lowercase_<text>%%formatter_text_replace_[target]_[replacement]_<text>%%formatter_text_substring_[start]:[end]_<text>%%formatter_text_uppercase_<text>%