From 4455f90949dd8ed8f7276b818f311ae1dffecaa6 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Sun, 28 May 2023 11:41:10 +0200 Subject: [PATCH] Improved code --- .../viaproxy/protocolhack/viaproxy/ConsoleCommandSender.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/raphimc/viaproxy/protocolhack/viaproxy/ConsoleCommandSender.java b/src/main/java/net/raphimc/viaproxy/protocolhack/viaproxy/ConsoleCommandSender.java index eef69d2..c1da722 100644 --- a/src/main/java/net/raphimc/viaproxy/protocolhack/viaproxy/ConsoleCommandSender.java +++ b/src/main/java/net/raphimc/viaproxy/protocolhack/viaproxy/ConsoleCommandSender.java @@ -19,7 +19,6 @@ package net.raphimc.viaproxy.protocolhack.viaproxy; import com.viaversion.viaversion.api.Via; import com.viaversion.viaversion.api.command.ViaCommandSender; -import net.raphimc.viaproxy.cli.ConsoleFormatter; import java.util.UUID; @@ -34,7 +33,7 @@ public class ConsoleCommandSender implements ViaCommandSender { @Override public void sendMessage(String msg) { - Via.getPlatform().getLogger().info(ConsoleFormatter.convert(msg)); + Via.getPlatform().sendMessage(null, msg); } @Override