diff --git a/platforms/spigot/src/main/java/com/deathmotion/antihealthindicator/commands/AHICommand.java b/platforms/spigot/src/main/java/com/deathmotion/antihealthindicator/commands/AHICommand.java index 6f2cb4d..8e77d10 100644 --- a/platforms/spigot/src/main/java/com/deathmotion/antihealthindicator/commands/AHICommand.java +++ b/platforms/spigot/src/main/java/com/deathmotion/antihealthindicator/commands/AHICommand.java @@ -56,7 +56,8 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command .getProtocolManager() .getUsers() .stream() - .filter(userStream -> userStream.getUUID().equals(((Player) sender).getUniqueId())) + .filter(user -> user != null && user.getUUID() != null) + .filter(user -> user.getUUID().equals(((Player) sender).getUniqueId())) .findFirst().ifPresent(user -> user.sendMessage(pcComponent)); return true;