Quests
Quests copied to clipboard
Add possibility to edit number format
Description of Feature
Hello, Would it be possible to add the ability to change the format of numbers in quests in the config of messages please ?
Exemple of config :
messages:
# Set the format of all numbers related displays.
# More informations: https://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html
number-format: '#,##0.00'
Reason for Addition
To simplify the rounding of certain values and improve the display of quests.
Alternative Solutions
Any
Agreements
- [X] I am running the latest version of Quests
- [X] I am certain this request is unique and a similar issue is not currently open
Other
No response
Is any number displayed in a weird way?
Is any number displayed in a weird way?
It's not because of that, but because I'd like my values to be displayed with commas (to make it more visual), and not all glued together.
And I thought it would be nice to offer this way of editing the display of values, as do most plugins where it's possible to have values ("economy" plugins in an example).
Allow to dsplay them with a space (like 1 038) would be fine for FR users :d
Hello @Krakenied, Do you have any news about this ?
i think i managed to implement it
its in config.yml
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'