Bumped version to 1.1.

Rewrite of config loading to support automatic missing field writing, reloading.

Economy item Material is now provided by Config.

Ender Chest support can now be disabled, `getInventory` (renamed to `getInventoryList`, the old method now returns an instance of Inventory) now returns an empty Inventory instance if Ender Chest is disabled.
This commit is contained in:
天クマ 2026-01-01 15:35:46 -03:00
commit f04001176a
6 changed files with 123 additions and 35 deletions

View file

@ -1,19 +1,22 @@
# ItemEconomy II
ItemEconomy II is a fork of [ItemEconomy](https://modrinth.com/plugin/itemeconomy), keeping it updated to later versions of Minecraft.
ItemEconomy II is a fork of [ItemEconomy](https://modrinth.com/plugin/itemeconomy), keeping it updated to later versions of Minecraft and adding new features.
This PaperMC plugin integrates with Vault to provide a unique, item-based economy system for your Minecraft server. Instead of relying solely on virtual balances, players use in-game items as physical currency, adding a layer of immersion and realism to your economy.
Features:
- Item-Based Currency: Set any Minecraft item as your server's currency (default: diamonds).
- Vault Integration: Fully compatible with Vault, enabling seamless interaction with other economy-based plugins.
- VaultUnlocked Integration: Fully compatible with VaultUnlocked, enabling seamless interaction with other economy-based plugins.
- Simple logic: Just checks if the user has the item/how many when queried.
- Customizable Formatting: Define how your currency is displayed, including singular and plural forms.
- Ender Chest support: Items on Ender Chests are counted in the user balance.
## Configuration Example:
```yaml
item: "diamond" # Define the item to be used as currency.
singular: "diamond" # Singular form of the currency.
plural: "diamonds" # Plural form of the currency.
item: diamond # Define the item to be used as currency.
singular: diamond # Singular form of the currency.
plural: diamonds # Plural form of the currency.
format: "{}$" # Customize how the currency is displayed in messages.
ender_chest: balance # Either none or balance
```
This configuration will use diamonds as the currency, displayed as {amount}$, e.g., "5 diamonds" or "1 diamond".