This commit is contained in:
ChomeNS
2023-04-22 09:43:49 +07:00
parent a31aefe855
commit 1ea53eb579
2 changed files with 12 additions and 12 deletions

View File

@@ -158,7 +158,7 @@ public class ChatPlugin extends SessionAdapter {
));
} else {
// Temporary fix for the bot getting kicked instead of chatting
bot.core().run("essentials:sudo " + bot.players().getBotEntry().profile().getIdAsString() + " c:" + splitMessage);
bot.core().run("essentials:sudo " + bot.username() + " c:" + splitMessage);
// bot.session().send(new ServerboundChatPacket(
// splitMessage,
// Instant.now().toEpochMilli(),