From 5a337afb005af44dd82cfabf8e748df9d5d42b2f Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 13 Jun 2021 05:16:57 -0400 Subject: [PATCH] Include compatible protocol versions in the incompatible version message Fixes #519 --- .../proxy/connection/client/HandshakeSessionHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java index 2ce8f8db1..fd91b7b87 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/HandshakeSessionHandler.java @@ -118,7 +118,8 @@ public class HandshakeSessionHandler implements MinecraftSessionHandler { private void handleLogin(Handshake handshake, InitialInboundConnection ic) { if (!ProtocolVersion.isSupported(handshake.getProtocolVersion())) { - ic.disconnectQuietly(Component.translatable("multiplayer.disconnect.outdated_client")); + ic.disconnectQuietly(Component.translatable("multiplayer.disconnect.outdated_client") + .args(Component.text(ProtocolVersion.SUPPORTED_VERSION_STRING))); return; }