refactor: more strict commandspy children size check

This commit is contained in:
ChomeNS
2025-03-07 15:05:37 +07:00
parent 34acf10e82
commit 171b3836df
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ public class CommandSpyPlugin extends ChatPlugin.Listener {
textComponent.color() != NamedTextColor.YELLOW ||
textComponent.style().isEmpty()
) &&
children.size() < 2
children.size() != 2
) return true;
if (!((TextComponent) children.getFirst()).content().equals(": ")) return true;