From 283d8d71b6f8772c70dac0a6daf398937bc091f3 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Wed, 24 Jun 2020 00:07:27 -0400 Subject: [PATCH] Restore compatibility with TCPShield plugin with recent change --- .../velocitypowered/proxy/connection/MinecraftConnection.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java index 6c8aa5b9f..ecf8c87c3 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/MinecraftConnection.java @@ -225,6 +225,10 @@ public class MinecraftConnection extends ChannelInboundHandlerAdapter { } } + public void close() { + close(true); + } + /** * Immediately closes the connection. * @param markKnown whether the disconnection is known