This release fixes an issue in how amounts are calculated that could result in withdrawing or depositing resulting in no change in balance.
It fixes how currency amounts which are stored as a double are compared to defined currency amounts which might result in an inaccurate comparison due to precision errors affecting behavior.
This release also adds enchantments to the config.yml for currency items as well as the ability to set item flags on each currency item to control how these items are displayed in inventories.
An example is as follows:
Code (Text):
currency:
wooden_coin:
item: minecraft:dead_bush
name: '&6Wooden Coin'
lore:
- '&r&fThis coin is the standard base currency'
- '&r&9Earn more coins from jobs, quests or trading!'
enchantments:
- unbreaking: 10
- knockback: 0
damage: 0
unbreakable: true
custom_model_data: 1
flags:
- HIDE_ATTRIBUTES
- HIDE_DESTROYS
- HIDE_ENCHANTS
- HIDE_PLACED_ON
- HIDE_POTION_EFFECTS
- HIDE_UNBREAKABLE
value: 1.0