From d3e1b358fb617dc6ea36bed1c7ef5100d53ee929 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 30 Jul 2021 15:42:34 -0400 Subject: [PATCH] Fix repeating "you were kicked from X" message --- .../proxy/connection/client/ConnectedPlayer.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java index f89e0258d..24d203b13 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java @@ -639,10 +639,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player { case SUCCESS: Component requestedMessage = res.getMessageComponent(); if (requestedMessage == null) { - requestedMessage = Component.translatable("velocity.error.moved-to-new-server", - NamedTextColor.RED, - Component.text(originalEvent.getServer().getServerInfo().getName()), - friendlyReason); + requestedMessage = friendlyReason; } sendMessage(requestedMessage); break;