Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram1903 committed May 20, 2024
2 parents fa67532 + 97dfc55 commit 5d01d02
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d01d02

Please sign in to comment.