Skip to content

Commit

Permalink
Fix a bug with completion broadcasting
Browse files Browse the repository at this point in the history
Reported via Discord.
  • Loading branch information
BONNe committed Feb 20, 2022
1 parent b9e57fd commit 6bffb20
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ ChallengeResult build(int maxTimes)
if (this.addon.getChallengesSettings().isBroadcastMessages())
{
Bukkit.getOnlinePlayers().stream().
filter(player -> this.user.getUniqueId().equals(player.getUniqueId())).
map(User::getInstance).
filter(Objects::nonNull).
forEach(user -> Utils.sendMessage(user, user.getTranslation(
Expand Down Expand Up @@ -380,7 +379,6 @@ ChallengeResult build(int maxTimes)
if (this.addon.getChallengesSettings().isBroadcastMessages())
{
Bukkit.getOnlinePlayers().stream().
filter(player -> this.user.getUniqueId().equals(player.getUniqueId())).
map(User::getInstance).
filter(Objects::nonNull).
forEach(user -> Utils.sendMessage(user, user.getTranslation(
Expand Down

0 comments on commit 6bffb20

Please sign in to comment.