mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-27 03:27:56 +01:00
fix bungeecord pinging (#538)
This commit is contained in:
parent
e28a847e73
commit
f43ffd64cb
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user