fix bungeecord pinging (#538)

This commit is contained in:
MrGazdag 2021-12-13 15:13:12 +01:00 committed by TheMode
parent e28a847e73
commit f43ffd64cb

View File

@ -48,7 +48,7 @@ public record HandshakePacket(int protocolVersion, @NotNull String serverAddress
String address = serverAddress;
// Bungee support (IP forwarding)
if (BungeeCordProxy.isEnabled() && connection instanceof PlayerSocketConnection socketConnection) {
if (BungeeCordProxy.isEnabled() && connection instanceof PlayerSocketConnection socketConnection && nextState == 2) {
if (address != null) {
final String[] split = address.split("\00");