mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-01 06:53:37 +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())
|
if (this.addon.getChallengesSettings().isBroadcastMessages())
|
||||||
{
|
{
|
||||||
Bukkit.getOnlinePlayers().stream().
|
Bukkit.getOnlinePlayers().stream().
|
||||||
filter(player -> this.user.getUniqueId().equals(player.getUniqueId())).
|
|
||||||
map(User::getInstance).
|
map(User::getInstance).
|
||||||
filter(Objects::nonNull).
|
filter(Objects::nonNull).
|
||||||
forEach(user -> Utils.sendMessage(user, user.getTranslation(
|
forEach(user -> Utils.sendMessage(user, user.getTranslation(
|
||||||
@ -380,7 +379,6 @@ public class TryToComplete
|
|||||||
if (this.addon.getChallengesSettings().isBroadcastMessages())
|
if (this.addon.getChallengesSettings().isBroadcastMessages())
|
||||||
{
|
{
|
||||||
Bukkit.getOnlinePlayers().stream().
|
Bukkit.getOnlinePlayers().stream().
|
||||||
filter(player -> this.user.getUniqueId().equals(player.getUniqueId())).
|
|
||||||
map(User::getInstance).
|
map(User::getInstance).
|
||||||
filter(Objects::nonNull).
|
filter(Objects::nonNull).
|
||||||
forEach(user -> Utils.sendMessage(user, user.getTranslation(
|
forEach(user -> Utils.sendMessage(user, user.getTranslation(
|
||||||
|
Loading…
Reference in New Issue
Block a user