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

@ -1,11 +1,32 @@
name: ItemEconomy
main: io.github.adrianvic.itemeconomy.Main
version: 1.1
depend:
- Vault
version: 1.2
depend: [Vault]
api-version: '1.21'
commands:
itecoreload:
description: Reloads the config for ItemEconomy
usage: /itecoreload
permission: iteco.reload
usage: "/itecoreload"
permission: iteco.reload
default: op
balance:
description: Prints your balance
usage: "/balance"
aliases: [bal]
permission: iteco.balance
pay:
description: Transfers money from your balance to other player
usage: "/pay <player> <amount>"
permission: iteco.pay
permissions:
iteco.reload:
description: "Permission to use the command '/itecoreload'."
default: false
iteco.balance:
description: "Permission to use the command '/balance'."
default: true
children:
iteco.balance.others: false
iteco.pay:
description: "Permission to use the command '/pay'."
default: true