mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-24 19:45:14 +01:00
Fix a bug with completion broadcasting
Reported via Discord.
This commit is contained in:
parent
b9e57fdebb
commit
6bffb2088b
@ -272,7 +272,6 @@ public class TryToComplete
|
||||
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(
|
||||
@ -380,7 +379,6 @@ public class TryToComplete
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user