fix the text

This commit is contained in:
Chayapak 2023-07-02 10:49:30 +07:00
parent b7751a5467
commit ec4bcd122c

View file

@ -106,6 +106,13 @@ public class SongLoaderRunnable implements Runnable {
} }
private void showAddedToQueue () { private void showAddedToQueue () {
if (isFolder) {
bot.chat.tellraw(
Component.text(
"Added folder to the song queue"
).color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor))
);
} else {
bot.chat.tellraw( bot.chat.tellraw(
Component.translatable( Component.translatable(
"Added %s to the song queue", "Added %s to the song queue",
@ -113,6 +120,7 @@ public class SongLoaderRunnable implements Runnable {
).color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor)) ).color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor))
); );
} }
}
private void failed() { private void failed() {
exception.printStackTrace(); exception.printStackTrace();