nikosgram / gringotts

Gringotts is an item-based economy plugin for the Bukkit Minecraft server platform. Unlike earlier economy plugins, all currency value and money transactions are based on actual items in Minecraft, per default emeralds.
https://www.spigotmc.org/resources/gringotts.42071/
BSD 2-Clause "Simplified" License
42 stars 35 forks source link

Withdrawal denomination #128

Open liam-macann opened 1 year ago

liam-macann commented 1 year ago

Is your feature request related to a problem? Please describe. My server uses one primary currency (value: 1), and then a separate denomination (value: 16) when trading in values over a stack. When executing /money withdraw 64 the smaller denomination would be preferred.

Describe the solution you'd like I would like to be able to set a withdrawal denomination. All withdraw actions can return one denomination, whereas deposit actions can accept all. This also means /balance values are accurate.

Describe alternatives you've considered Other use cases may prefer to choose the denomination of each action. An additional argument /money withdraw <value> [type] would be appropriate. A default type could then be configured, with auto retaining the current behaviour.

If denomination types are being exchanged, then it would make sense to consolidate currency when inventories are running out of space.

Additional context This is relevant when trading with Shopkeepers. Users may prefer to operate with a single denomination, to avoid unnecessarily using both trading slots.

Screenshot 2022-10-25 at 21 36 37
nikosgram commented 1 year ago

I have currently paused all the new features/enhancement development as I'm focusing on improving performance issues. :)