geforkt von Mirrors/Velocity
Include forwarding version in modern forwarding
This is currently version 1.
Dieser Commit ist enthalten in:
Ursprung
1d8b11e47b
Commit
19956a2ed7
@ -6,5 +6,5 @@ public class VelocityConstants {
|
||||
}
|
||||
|
||||
public static final String VELOCITY_IP_FORWARDING_CHANNEL = "velocity:player_info";
|
||||
|
||||
public static final int FORWARDING_VERSION = 1;
|
||||
}
|
||||
|
@ -123,6 +123,7 @@ public class LoginSessionHandler implements MinecraftSessionHandler {
|
||||
ByteBuf dataToForward = Unpooled.buffer();
|
||||
ByteBuf finalData = Unpooled.buffer();
|
||||
try {
|
||||
ProtocolUtils.writeVarInt(dataToForward, VelocityConstants.FORWARDING_VERSION);
|
||||
ProtocolUtils.writeString(dataToForward, address);
|
||||
ProtocolUtils.writeUuid(dataToForward, profile.idAsUuid());
|
||||
ProtocolUtils.writeString(dataToForward, profile.getName());
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren