From 188b3e9e3016edf0c1029521cc23cdda9092ed44 Mon Sep 17 00:00:00 2001
From: ChomeNS <95471003+ChomeNS@users.noreply.github.com>
Date: Sun, 23 Apr 2023 11:15:21 +0700
Subject: [PATCH] use serverName instead of host:port for console i guess
---
.idea/workspace.xml | 26 ++++++++++---------
.../chomens_bot/plugins/LoggerPlugin.java | 2 +-
2 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index f03e89c..bb2a287 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,9 @@
-
+
+
+
@@ -47,7 +49,7 @@
"RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "master",
"jdk.selected.JAVA_MODULE": "17",
- "last_opened_file_path": "/home/chayapak1/IdeaProjects/chomens-bot-java",
+ "last_opened_file_path": "/home/chayapak1/IdeaProjects/CrackUtils",
"project.structure.last.edited": "Modules",
"project.structure.proportion": "0.0",
"project.structure.side.proportion": "0.0",
@@ -95,13 +97,6 @@
1680245437032
-
- 1681461700243
-
-
-
- 1681461700243
-
1681535433129
@@ -438,7 +433,14 @@
1682209455256
-
+
+ 1682209891989
+
+
+
+ 1682209891989
+
+
@@ -453,7 +455,6 @@
-
@@ -478,7 +479,8 @@
-
+
+
diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/LoggerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/LoggerPlugin.java
index bea751f..45fa5e5 100644
--- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/LoggerPlugin.java
+++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/LoggerPlugin.java
@@ -48,7 +48,7 @@ public class LoggerPlugin extends ChatPlugin.ChatListener {
"[%s %s] [%s] %s",
Component.text(dateTime.format(dateTimeFormatter)).color(NamedTextColor.GRAY),
prefix,
- Component.text(bot.host() + ":" + bot.port()).color(NamedTextColor.GRAY),
+ Component.text(bot.options().serverName()).color(NamedTextColor.GRAY),
Component.text(_message).color(NamedTextColor.WHITE)
).color(NamedTextColor.DARK_GRAY);