actually check if the style is empty

i forgor to check it.,.
This commit is contained in:
Chayapak 2023-05-22 21:17:42 +07:00
parent 309d2dd9a7
commit b65a4063c9

View file

@ -30,7 +30,8 @@ public class CommandSpyParser implements ChatParser {
if ( if (
( (
message.color() != NamedTextColor.AQUA || message.color() != NamedTextColor.AQUA ||
message.color() != NamedTextColor.YELLOW message.color() != NamedTextColor.YELLOW ||
message.style().isEmpty()
) && ) &&
children.size() < 2 children.size() < 2
) return null; ) return null;