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

Load full ItemMeta from config #138

Closed hhenrichsen closed 1 year ago

hhenrichsen commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, Gringotts doesn't work well with custom item plugins. Luckily, ItemMeta is ConfigurationSerializable which means that it should be fairly trivial to add things like Enchantments, Flags, HideFlags, etc. to an item.

Ideally we'd also provide some command to set the denominations in the config based on the current held item so that things like NBT data could be copied over and stored in the internal field of ItemMeta, allowing support for plugins like Oraxen, MythicMobs, and ItemsAdder.

Describe the solution you'd like Update the configuration format to allow for arbitrary ItemMeta.

Describe alternatives you've considered

Additional context I'm going to open a PR for this in the next couple days.

hhenrichsen commented 1 year ago

I lied, that took fewer changes than I anticipated.