From 1ea53eb57912dab4695a06dbb42a313795d03221 Mon Sep 17 00:00:00 2001
From: ChomeNS <95471003+ChomeNS@users.noreply.github.com>
Date: Sat, 22 Apr 2023 09:43:49 +0700
Subject: [PATCH] fard 2
---
.idea/workspace.xml | 22 +++++++++----------
.../chomens_bot/plugins/ChatPlugin.java | 2 +-
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 66b934e..1a26d2d 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,7 @@
-
+
@@ -94,13 +94,6 @@
1680245437032
-
- 1681194542547
-
-
-
- 1681194542547
-
1681194626010
@@ -437,7 +430,14 @@
1682122055990
-
+
+ 1682130155082
+
+
+
+ 1682130155082
+
+
@@ -468,7 +468,6 @@
-
@@ -477,7 +476,8 @@
-
+
+
diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatPlugin.java
index 7c60bd9..704eef2 100644
--- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatPlugin.java
+++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/ChatPlugin.java
@@ -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(),