Improved code

This commit is contained in:
RaphiMC 2023-05-28 11:41:10 +02:00
parent 0903044a8a
commit 4455f90949

View File

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