diff --git a/proxy/src/main/java/com/velocitypowered/proxy/server/VelocityRegisteredServer.java b/proxy/src/main/java/com/velocitypowered/proxy/server/VelocityRegisteredServer.java index dc671414d..fe28ae00e 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/server/VelocityRegisteredServer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/server/VelocityRegisteredServer.java @@ -155,9 +155,10 @@ public class VelocityRegisteredServer implements RegisteredServer, ForwardingAud */ public boolean sendPluginMessage(ChannelIdentifier identifier, ByteBuf data) { for (ConnectedPlayer player : players.values()) { - VelocityServerConnection connection = player.getConnectedServer(); - if (connection != null && connection.getServer() == this) { - return connection.sendPluginMessage(identifier, data); + VelocityServerConnection serverConnection = player.getConnectedServer(); + if (serverConnection != null && serverConnection.getConnection() != null + && serverConnection.getServer() == this) { + return serverConnection.sendPluginMessage(identifier, data); } }