mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Implement configurable currency formatting.
This commit enables users of different countries around the world to configure currency formatting displayed to users in a familiar manner. Prior to this commit US formatting (symbols) was forced upon users. This is now configurable via locale values e.g. en-US, de, fr-ch. This commit adds two new configurations: - currency-format - currency-symbol-format-locale One method ISettings#getCurrencyFormat()
This commit is contained in:
parent
a267fb16b8
commit
282ec81af1
4 changed files with 75 additions and 0 deletions
|
@ -8,6 +8,7 @@ import org.bukkit.configuration.ConfigurationSection;
|
|||
import org.bukkit.event.EventPriority;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.text.NumberFormat;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
@ -243,4 +244,6 @@ public interface ISettings extends IConf {
|
|||
boolean isSendFlyEnableOnJoin();
|
||||
|
||||
boolean isWorldTimePermissions();
|
||||
|
||||
NumberFormat getCurrencyFormat();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue