diff options
| author | Krakenied <Krakenied1@gmail.com> | 2024-08-27 20:18:40 +0200 |
|---|---|---|
| committer | Krakenied <46192742+Krakenied@users.noreply.github.com> | 2024-08-28 11:37:11 +0200 |
| commit | 4f254f515123dd3626267079a7a99bfc67347e4f (patch) | |
| tree | 4584850fd78a2dd801c62ea8e5ba1515cf4271c4 /docs/configuration/basic-options.md | |
| parent | e70150b2a25337773d3df86e03354bdf038cb535 (diff) | |
A little docs cleanup
Diffstat (limited to 'docs/configuration/basic-options.md')
| -rw-r--r-- | docs/configuration/basic-options.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/configuration/basic-options.md b/docs/configuration/basic-options.md index f24585e9..a043fbde 100644 --- a/docs/configuration/basic-options.md +++ b/docs/configuration/basic-options.md @@ -102,6 +102,10 @@ options: # See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarStyle.html style: '0.0': SOLID # for 0.0 and higher progress values (progress is always between 0.0 and 1.0) + # Max amount of active task progress boss bars at once + limit: -1 + # Whether new boss bar should be added and make another (the least progress one - if exists) disappear + replace-on-limit: true ``` ## Actionbar @@ -690,3 +694,30 @@ options: connection-timeout: 5000 table-prefix: "quests_" ``` + +## Number formats + + +*`number-formats`* + +Configure how Quests will display different types of numbers used in placeholders. Most common locales are: +- `de-DE`: `1.234,56` +- `en-US`: `1,234.56` +- `fr-ch`: `1'234,56` + +Java docs for internals used to handle number formats: +- [DecimalFormat](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/text/DecimalFormat.html) +- [DecimalFormatSymbols](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/text/DecimalFormatSymbols.html) +- [Locale](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Locale.html) + +``` yaml +number-formats: + # decimal format used for processing float, double and BigDecimal placeholders + floating: + format: '#,##0.00' + locale: 'en-US' + # decimal format used for processing int, long and BigInteger placeholders + integral: + format: '#,##0' + locale: 'en-US' +``` |
