mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-28 12:07:42 +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;
|
String address = serverAddress;
|
||||||
// Bungee support (IP forwarding)
|
// Bungee support (IP forwarding)
|
||||||
if (BungeeCordProxy.isEnabled() && connection instanceof PlayerSocketConnection socketConnection) {
|
if (BungeeCordProxy.isEnabled() && connection instanceof PlayerSocketConnection socketConnection && nextState == 2) {
|
||||||
if (address != null) {
|
if (address != null) {
|
||||||
final String[] split = address.split("\00");
|
final String[] split = address.split("\00");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user