Skip to content

Commit

Permalink
Compact text before sending to align with other implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Feb 17, 2025
1 parent b09584d commit 89b9aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public BukkitCommandSource(CommandSourceStack delegate) {

@Override
public void sendMessage(Component text) {
delegate.getSender().sendMessage(text);
delegate.getSender().sendMessage(text.compact());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void sendMessage(Component text) {
if (TextFormat.lineCount(text) > 1)
text = Component.newline().append(text).appendNewline();

audience.sendMessage(text);
audience.sendMessage(text.compact());
}

@Override
Expand Down

0 comments on commit 89b9aa6

Please sign in to comment.