fix: fix nullpointerexception in FindAltsCommand

This commit is contained in:
ChomeNS
2024-11-17 17:41:05 +07:00
parent b424f29972
commit 9f10ca8a3e

View File

@@ -39,6 +39,8 @@ public class FindAltsCommand extends Command {
else {
final CompletableFuture<String> future = bot.players.getPlayerIP(playerEntry);
if (future == null) return null;
future.thenApplyAsync(targetIP -> {
context.sendOutput(handle(bot, targetIP, false, player));