refactor: add return messages to ClearChatQueueCommand and RefillCoreCommand to reduce a lot of player confusion

This commit is contained in:
ChomeNS
2025-04-06 08:49:27 +07:00
parent ae91b3d78b
commit 59749d85df
3 changed files with 9 additions and 3 deletions

View File

@@ -1 +1 @@
2392
2393

View File

@@ -5,6 +5,7 @@ import me.chayapak1.chomens_bot.command.Command;
import me.chayapak1.chomens_bot.command.CommandContext;
import me.chayapak1.chomens_bot.command.CommandException;
import me.chayapak1.chomens_bot.command.TrustLevel;
import me.chayapak1.chomens_bot.util.ColorUtilities;
import net.kyori.adventure.text.Component;
public class ClearChatQueueCommand extends Command {
@@ -27,6 +28,8 @@ public class ClearChatQueueCommand extends Command {
bot.chat.clearQueue();
return null;
return Component
.text("Cleared the bot's chat queue")
.color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor));
}
}

View File

@@ -5,6 +5,7 @@ import me.chayapak1.chomens_bot.command.Command;
import me.chayapak1.chomens_bot.command.CommandContext;
import me.chayapak1.chomens_bot.command.CommandException;
import me.chayapak1.chomens_bot.command.TrustLevel;
import me.chayapak1.chomens_bot.util.ColorUtilities;
import net.kyori.adventure.text.Component;
public class RefillCoreCommand extends Command {
@@ -28,6 +29,8 @@ public class RefillCoreCommand extends Command {
bot.core.reset();
bot.core.refill();
return null;
return Component
.text("Refilled the command core")
.color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor));
}
}