Skip to content

Commit

Permalink
Fixed output with color console disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinRepo committed Apr 10, 2022
1 parent a2b645c commit 1b9de63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/me/dustin/chatbot/helper/GeneralHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static void printChat(ChatMessage chatMessage) {
chatMessage = new ChatMessage("<" + chatMessage.getSenderName() + (chatMessage.getSenderName().contains("§") ? "§f" : "") +">", chatMessage.getBody());
String m = chatMessage.getMessage();
if (!m.contains("§") || !ChatBot.getConfig().isColorConsole()) {
print(m, ChatMessage.TextColors.WHITE);
print(strip(m), ChatMessage.TextColors.WHITE);
return;
}
printColorText(chatMessage.getMessage());
Expand Down

0 comments on commit 1b9de63

Please sign in to comment.