fix: players removing fix again

This commit is contained in:
ChomeNS
2025-03-30 18:12:40 +07:00
parent 363d7a9270
commit 821bfe2626
3 changed files with 9 additions and 4 deletions

View File

@@ -52,7 +52,9 @@ public class QueryPlugin extends Bot.Listener implements ChatPlugin.Listener {
transactions.remove(transactionId);
if (children.size() == 1 || !(children.get(1) instanceof TextComponent)) {
if (children.size() == 1) {
future.complete("");
} else if (!(children.get(1) instanceof TextComponent)) {
future.complete(null);
} else {
final String stringOutput = ((TextComponent) children.get(1)).content();