Last hex color of string #5040
Labels
enhancement
Feature request, an issue about something that could be improved, or a PR improving something.
PR available
Issues which have a yet-to-be merged PR resolving it
priority: lowest
"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Suggestion
It would be nice to have an expression which would return the last/first hex color of a string. I had a look at "last color of ..." expression of Skript, but it won't return a hex color.
I have tried multiple ways to get the last hex color of a string, using subtext, last 6-16 characters of the string, but nothing really worked. Also tried splitting the string at "" and get the last elements of the array, but that didn't work out either.
Why?
It would be really useful, since there isn't a "clear" way to do this and it would make this waaay easier.
Other
I had a look at the code behind "last color of ..." expression and seen that it's using
org.bukkit.ChatColor
'sgetLastColors()
method, which doesn't seem to work with hex colors.Agreement
The text was updated successfully, but these errors were encountered: