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:
天クマ 2026-01-02 20:55:50 -03:00
commit 717f1b9a1a
8 changed files with 266 additions and 98 deletions

View file

@ -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() {