From ec4bcd122cd86cf234fa6ccf2841620095235ac5 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 2 Jul 2023 10:49:30 +0700 Subject: [PATCH] fix the text --- .../chomens_bot/song/SongLoaderRunnable.java | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/song/SongLoaderRunnable.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/song/SongLoaderRunnable.java index f547dd1..a1a1dfc 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/song/SongLoaderRunnable.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/song/SongLoaderRunnable.java @@ -106,12 +106,20 @@ public class SongLoaderRunnable implements Runnable { } private void showAddedToQueue () { - bot.chat.tellraw( - Component.translatable( - "Added %s to the song queue", - Component.empty().append(song.name).color(ColorUtilities.getColorByString(bot.config.colorPalette.secondary)) - ).color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor)) - ); + if (isFolder) { + bot.chat.tellraw( + Component.text( + "Added folder to the song queue" + ).color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor)) + ); + } else { + bot.chat.tellraw( + Component.translatable( + "Added %s to the song queue", + Component.empty().append(song.name).color(ColorUtilities.getColorByString(bot.config.colorPalette.secondary)) + ).color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor)) + ); + } } private void failed() {