Skip to content

Commit

Permalink
update broadcast being sent to the console twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Grabsky committed Jul 29, 2024
1 parent 9be91a7 commit 07e792d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/cloud/grabsky/bedrock/components/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ public void broadcast(final @NotNull Predicate<Player> predicate) {
// Ignoring empty/blank messages.
if (empty().equals(component) == true)
return;
// Broadcasting message to the console.
Bukkit.getConsoleSender().sendMessage(message);
// Broadcasting message to the players.
for (final Player player : players)
player.sendMessage(component);
Expand All @@ -241,8 +243,6 @@ public void broadcast() {
// Ignoring empty/blank messages.
if (empty().equals(component) == true)
return;
// Broadcasting message to the console.
Bukkit.getConsoleSender().sendMessage(message);
// Broadcasting message to the server.
Bukkit.broadcast(component);
}
Expand Down

0 comments on commit 07e792d

Please sign in to comment.