From 5ee96606f6ad55a80f46a4d6b927c9bedf6d7039 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 20 Apr 2022 04:36:25 +0200 Subject: [PATCH] Override correct sendMessage method (#698) --- .../com/velocitypowered/proxy/console/VelocityConsole.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java b/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java index 6395dbe6d..06ba34aec 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java @@ -27,6 +27,8 @@ import com.velocitypowered.proxy.VelocityServer; import com.velocitypowered.proxy.util.ClosestLocaleMatcher; import java.util.List; import java.util.Locale; + +import net.kyori.adventure.audience.MessageType; import net.kyori.adventure.identity.Identity; import net.kyori.adventure.permission.PermissionChecker; import net.kyori.adventure.platform.facet.FacetPointers; @@ -65,7 +67,7 @@ public final class VelocityConsole extends SimpleTerminalConsole implements Cons } @Override - public void sendMessage(@NonNull Identity identity, @NonNull Component message) { + public void sendMessage(@NonNull Identity identity, @NonNull Component message, @NonNull MessageType messageType) { Component translated = GlobalTranslator.render(message, ClosestLocaleMatcher.INSTANCE .lookupClosest(Locale.getDefault())); logger.info(LegacyComponentSerializer.legacySection().serialize(translated));