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 @@ - @@ -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);