Bumped version to 1.2.
Added `/balance` and `/pay` commands and a config option to enable them. Added safeIs method to Config to match values without case sensitivity. Added getCurrencyText method to Config to generate a formatted string from a currency amount. Value 'format' from config file now supports amount-name replacement. Main now stores the instance of VaultLayer for further use.
This commit is contained in:
parent
f04001176a
commit
717f1b9a1a
8 changed files with 266 additions and 98 deletions
|
|
@ -26,7 +26,7 @@ public class VaultLayer implements Economy {
|
|||
}
|
||||
|
||||
public String format(double amount) {
|
||||
return Config.get("format").replace("{}", String.valueOf(amount));
|
||||
return Config.getCurrencyText((int) amount);
|
||||
}
|
||||
|
||||
public String currencyNamePlural() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue