24w13a
This commit is contained in:
1 parent
d4e1976ff8
commit
d7468ac561
6 files changed
+16
-8
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user