Important
The Formatter expansion uses Paper 1.19.3 and therefore builds against Java 17.
This makes it incompatible with older Java Distributions. Older Minecraft versions may be supported, but it isn't guaranteed.
Please make sure to use at least Java 17 or else you may get a UnsupportedClassVersionError
when it loads.
The Formatter expansion currently offers the following placeholders:
%formatter_number_format[_[locale]:[pattern]]_<number>%
%formatter_number_from:<time_unit>_to:<time_unit>_<number>%
%formatter_number_round[_[precision]:[rounding_mode]]_<number>%
%formatter_number_shorten_<number>%
%formatter_number_time[_<time_unit>]_<number>%
%formatter_text_length_<text>%
%formatter_text_lowercase_<text>%
%formatter_text_replace_[target]_[replacement]_<text>%
%formatter_text_substring_[start]:[end]_<text>%
%formatter_text_uppercase_<text>%
An explanation of the placeholder pages is found in the placeholders folder
The expansion allows you to use placeholders from other expansions such as the Player expansion.
To use a placeholder, make sure to use the bracket-format instead of the percent one (i.e. {player_name}
instead of %player_name%
).
The expansion adds a few options to the config.yml of PlaceholderAPI.
They can be found under expansions.formatter
.
Option | Description |
The default DecimalFormat to use for the format placeholder. | |
Type: String Default: #,###,###.##
|
|
The country code to use for the decimal format. You need to replace _ with -
|
|
Type: String Default: en-US
|
|
The letter used to indicate thousands. | |
Type: String Default: K
|
|
The letter used to indicate millions. | |
Type: String Default: M
|
|
The letter used to indicate billions. | |
Type: String Default: B
|
|
The letter used to indicate trillions. | |
Type: String Default: T
|
|
The letter used to indicate quadrillions. | |
Type: String Default: Q
|
|
Whether the time returned by the time placeholder should not have any spaces. | |
Type: Boolean Default: false
|
|
The text used to indicate days. | |
Type: String Default: d
|
|
The text used to indicate hours. | |
Type: String Default: h
|
|
The text used to indicate minutes. | |
Type: String Default: m
|
|
The text used to indicate seconds. | |
Type: String Default: s
|
|
The text used to indicate milliseconds. | |
Type: String Default: ms
|
|
The default rounding mode to use if no mode was defined in the rounding placeholder.
Available modes:
|
|
Type: String Default: half-up
|
|
Default number of decimal points to display when no precision was defined the rounding placeholder. | |
Type: Number (0 ≤ x) Default: 0
|