fix: limit TranslateCommand chat types

This commit is contained in:
ChomeNS
2025-05-01 15:17:15 +07:00
parent d362919c55
commit 05601e4cef
2 changed files with 5 additions and 2 deletions

View File

@@ -1 +1 @@
3028
3029

View File

@@ -7,6 +7,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.data.chat.ChatPacketType;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
@@ -34,7 +35,9 @@ public class TranslateCommand extends Command {
"Translates a message using Google Translate",
new String[] { "<from> <to> <message>" },
new String[] {},
TrustLevel.PUBLIC
TrustLevel.PUBLIC,
false,
new ChatPacketType[] { ChatPacketType.SYSTEM, ChatPacketType.DISGUISED }
);
}