From 10a14af2ea073649b1a83c368c82a26b2be2058c Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Mon, 24 Aug 2020 14:13:46 -0400 Subject: [PATCH] Include success message too --- .../proxy/connection/client/ConnectedPlayer.java | 4 ++++ 1 file changed, 4 insertions(+) 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 e0e81a971..cfc33f8e2 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 @@ -617,6 +617,10 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player { handleConnectionException(res.getServer(), Disconnect.create(reason, getProtocolVersion()), ((Impl) status).isSafe()); break; + case SUCCESS: + sendMessage(server.getConfiguration().getMessages() + .getMovedToNewServerPrefix().append(friendlyReason)); + break; default: // The only remaining value is successful (no need to do anything!) break;