Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
MessageBuilder: fix too long message
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Sep 7, 2023
1 parent f48c336 commit 149fde5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/net/flectone/messages/MessageBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ public String getMessage(String color) {

color = ChatColor.getLastColors(color) + ChatColor.getLastColors(word);

word = color + wordParams.getFormatting() + word + ChatColor.RESET + color;
String newFormatting = wordParams.getFormatting();
if (!newFormatting.isEmpty()) {
word = color + newFormatting + word + ChatColor.RESET + color;
}

stringBuilder.append(word);
}
Expand Down

0 comments on commit 149fde5

Please sign in to comment.