AppleDash / SaneEconomy

Finally, a sane economy plugin for Bukkit.
https://www.spigotmc.org/resources/saneeconomy-simple-but-featureful-economy.26223/
GNU General Public License v3.0
19 stars 24 forks source link

Allow custom balance format string #46

Closed ghost closed 7 years ago

ghost commented 7 years ago

On my server, the typical currency formatting has no space between the amount and unit of currency (ex. "Your balance is 10n"). This change adds the ability to format currency this way and in other ways while retaining complete compatibility with all current implementations. If you feel that the config.yml option adds too much confusion/clutter for such an uncommonly used feature, it could be a "hidden" option that can be added to the file manually for the rare cases where it is needed.

AppleDash commented 7 years ago

Change it to use https://github.com/AppleDash/SaneEconomy/blob/master/SaneEconomyCore/src/main/java/org/appledash/saneeconomy/utils/MessageUtils.java#L49 and I'd be happy to merge it. (It's not very well documented, but the format would then look like this: {0} {1} for no space, or {0}{1} for a space.