fix: fix nullpointerexception in FindAltsCommand
This commit is contained in:
parent
b424f29972
commit
9f10ca8a3e
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue