This commit is contained in:
gnembon committed 2024-03-27 21:57:05 +01:00
1 parent d4e1976ff8
commit d7468ac561
6 files changed
+16 -8

No files matched your search

+9 -1
View File
@@ -55,7 +55,15 @@ public class Messenger
BLACK ('k', (s, f) -> s.withColor(ChatFormatting.BLACK)),
COLOR ('#', (s, f) -> {
TextColor color = TextColor.parseColor("#"+f).getOrThrow(false, LOG::warn);
TextColor color;
try
{
color = TextColor.parseColor("#" + f).getOrThrow(RuntimeException::new);
}
catch (RuntimeException e)
{
return s;
}
return color == null ? s : s.withColor(color);
}, s -> {
Matcher m = colorExtract.matcher(s);