Yamakaja / commanditems

Assign commands to items
https://www.spigotmc.org/resources/command-items.42556/
MIT License
9 stars 15 forks source link

Hex/RGB color codes #25

Closed tika closed 1 year ago

tika commented 3 years ago

Support for hex colors?

Yamakaja commented 3 years ago

Uh, in what context? (I.e. where do you want to use RGB colors, and where is that even possible? Banners maybe?)

tika commented 3 years ago

In names of items, descriptions of items

Yamakaja commented 3 years ago

Are you referring to the normal §[0-9a-f] / &[0-9a-f] codes or is there now a way to specify arbitrary colors?

tika commented 3 years ago

Ah, in 1.17 they added support for RGB color codes, I can create a PR for this feature?

Yamakaja commented 3 years ago

Ohh, i see. Sure, why not :)

tika commented 3 years ago

This requires the 1.17 API however as it's specifically for that version

Yamakaja commented 3 years ago

Mhm, this needs to be implemented in a backwards compatible manner. I'll take a look at the API, maybe there is a good way to do that.